forked from PAWPAW-Mirror/lib_xua
25 lines
434 B
C
25 lines
434 B
C
|
|
#include "devicedefines.h"
|
|
#include "hostactive.h"
|
|
#include "audiostream.h"
|
|
|
|
void XUD_UserSuspend(void) __attribute__ ((weak));
|
|
void XUD_UserSuspend(void)
|
|
{
|
|
UserAudioStreamStop();
|
|
UserHostActive(0);
|
|
}
|
|
|
|
void XUD_UserResume(void) __attribute__ ((weak));
|
|
void XUD_UserResume(void)
|
|
{
|
|
unsigned config;
|
|
|
|
asm("ldw %0, dp[g_currentConfig]" : "=r" (config):);
|
|
|
|
if(config == 1)
|
|
{
|
|
UserHostActive(1);
|
|
}
|
|
}
|