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:
parent
7ad78222c4
commit
15a358099c
5 changed files with 64 additions and 8 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue