summaryrefslogtreecommitdiffstats
path: root/firmware/export
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2007-02-18 05:32:06 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2007-02-18 05:32:06 +0000
commit9a6f419775270340ee154c55dbe52e99682fb77a (patch)
tree188fa4854d2ac5529f701de1bbba29a3241495bc /firmware/export
parentbd47d48c21ddcdd56b3654db78613d93739b8ce7 (diff)
downloadrockbox-9a6f419775270340ee154c55dbe52e99682fb77a.tar.gz
rockbox-9a6f419775270340ee154c55dbe52e99682fb77a.zip
CONFIG_CHARGING
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12384 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/config.h4
-rw-r--r--firmware/export/power.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/firmware/export/config.h b/firmware/export/config.h
index 0a59c0bf89..8283b37fc8 100644
--- a/firmware/export/config.h
+++ b/firmware/export/config.h
@@ -230,6 +230,10 @@
#define CONFIG_LED 0
#endif
+#ifndef CONFIG_CHARGING
+#define CONFIG_CHARGING 0
+#endif
+
/* Enable the directory cache and tagcache in RAM if we have
* plenty of RAM. Both features can be enabled independently. */
#if ((defined(MEMORYSIZE) && (MEMORYSIZE > 8)) || MEM > 8) && \
diff --git a/firmware/export/power.h b/firmware/export/power.h
index 911ae1dd29..9eed1929fe 100644
--- a/firmware/export/power.h
+++ b/firmware/export/power.h
@@ -24,7 +24,7 @@ extern bool charger_enabled;
void charger_enable(bool on);
#endif
-#ifdef CONFIG_CHARGING
+#if CONFIG_CHARGING
bool charger_inserted(void);
#endif