diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2005-04-06 11:12:22 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2005-04-06 11:12:22 +0000 |
commit | 3d2178148bbabac312ea01ad4d9cc6d86bcff75c (patch) | |
tree | bd222448c25549d124d81ecb468f7ad3ef89bb70 /apps/main.c | |
parent | 3b853c692e65b603c71655537288fc811b25214f (diff) | |
download | rockbox-3d2178148bbabac312ea01ad4d9cc6d86bcff75c.tar.gz rockbox-3d2178148bbabac312ea01ad4d9cc6d86bcff75c.zip |
Moved the car adapter mode handling to apps/, now every thread gets SYS_CHARGER_CONNECTED and SYS_CHARGER_DISCONNECTED events
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6255 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/main.c')
-rw-r--r-- | apps/main.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/main.c b/apps/main.c index b5c6364080..af84a46984 100644 --- a/apps/main.c +++ b/apps/main.c | |||
@@ -58,7 +58,7 @@ | |||
58 | #include "power.h" | 58 | #include "power.h" |
59 | #include "talk.h" | 59 | #include "talk.h" |
60 | #include "plugin.h" | 60 | #include "plugin.h" |
61 | 61 | #include "misc.h" | |
62 | 62 | ||
63 | #if (CONFIG_HWCODEC == MASNONE) | 63 | #if (CONFIG_HWCODEC == MASNONE) |
64 | #include "pcm_playback.h" | 64 | #include "pcm_playback.h" |
@@ -271,6 +271,9 @@ void init(void) | |||
271 | #if (CONFIG_HWCODEC == MASNONE) | 271 | #if (CONFIG_HWCODEC == MASNONE) |
272 | pcm_init(); | 272 | pcm_init(); |
273 | #endif | 273 | #endif |
274 | #ifdef HAVE_CHARGING | ||
275 | car_adapter_mode_init(); | ||
276 | #endif | ||
274 | } | 277 | } |
275 | 278 | ||
276 | int main(void) | 279 | int main(void) |