1
0
Fork 0
forked from len0rd/rockbox

Introduce "power" thread for RaaA

I tried to move the #ifdefs and the code
in firmware/powermgmt.c around and it was still
a big mess for hosted applications (RaaA/sim builds).

Create our own "power" thread as recently discussed on IRC.

Fixes the sleep timer for RaaA.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29501 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Thomas Jarosch 2011-03-02 19:12:55 +00:00
parent 7ad78222c4
commit 15a358099c
5 changed files with 64 additions and 8 deletions

View file

@ -35,7 +35,6 @@ uintptr_t *stackbegin;
uintptr_t *stackend;
extern int main(void);
extern void powermgmt_init_target(void);
extern void telephony_init_device(void);
void system_exception_wait(void) { }
@ -44,10 +43,7 @@ void power_off(void) { }
void system_init(void)
{
/* no better place yet, most of powermgmt.c is #ifdef'd out for non-native
* builds */
powermgmt_init_target();
/* also no better place yet */
/* no better place yet */
telephony_init_device();
}