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.zip
rockbox-3d2178148bbabac312ea01ad4d9cc6d86bcff75c.tar.gz
rockbox-3d2178148bbabac312ea01ad4d9cc6d86bcff75c.tar.bz2
rockbox-3d2178148bbabac312ea01ad4d9cc6d86bcff75c.tar.xz
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 b5c6364..af84a46 100644
--- a/apps/main.c
+++ b/apps/main.c
@@ -58,7 +58,7 @@
#include "power.h"
#include "talk.h"
#include "plugin.h"
-
+#include "misc.h"
#if (CONFIG_HWCODEC == MASNONE)
#include "pcm_playback.h"
@@ -271,6 +271,9 @@ void init(void)
#if (CONFIG_HWCODEC == MASNONE)
pcm_init();
#endif
+#ifdef HAVE_CHARGING
+ car_adapter_mode_init();
+#endif
}
int main(void)