summaryrefslogtreecommitdiff
path: root/apps/main.c
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2005-04-06 11:12:22 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2005-04-06 11:12:22 +0000
commit3d2178148bbabac312ea01ad4d9cc6d86bcff75c (patch)
treebd222448c25549d124d81ecb468f7ad3ef89bb70 /apps/main.c
parent3b853c692e65b603c71655537288fc811b25214f (diff)
downloadrockbox-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.c5
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
276int main(void) 279int main(void)