forked from PAWPAW-Mirror/lib_xua
Doc updates
This commit is contained in:
23
module_usb_audio/xuduser/xuduser.xc
Normal file
23
module_usb_audio/xuduser/xuduser.xc
Normal file
@@ -0,0 +1,23 @@
|
||||
|
||||
#include "devicedefines.h"
|
||||
|
||||
#ifdef HOST_ACTIVE_CALL
|
||||
void VendorHostActive(int valid);
|
||||
|
||||
void XUD_UserSuspend(void)
|
||||
{
|
||||
VendorHostActive(0);
|
||||
}
|
||||
|
||||
void XUD_UserResume(void)
|
||||
{
|
||||
unsigned config;
|
||||
|
||||
asm("ldw %0, dp[g_config]" : "=r" (config):);
|
||||
|
||||
if(config == 1)
|
||||
{
|
||||
VendorHostActive(1);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user