summaryrefslogtreecommitdiff
path: root/firmware/backlight.c
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2006-03-22 14:17:45 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2006-03-22 14:17:45 +0000
commit13618007b36b60dda1425ada261308a3624224c3 (patch)
treeaa893db25dd138de4ed0aaf0fa055f76a4fbaeea /firmware/backlight.c
parentcff2a54e7cbc369621c41a04a1bb67110da81443 (diff)
Backlight for iAudio X5
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9185 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/backlight.c')
-rw-r--r--firmware/backlight.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/firmware/backlight.c b/firmware/backlight.c
index 9aace01b2e..89a9939213 100644
--- a/firmware/backlight.c
+++ b/firmware/backlight.c
@@ -40,9 +40,13 @@
#ifdef HAVE_REMOTE_LCD
#include "lcd-remote.h"
#endif
+#ifdef TARGET_TREE
+#include "backlight-target.h"
+#endif
/* Basic low-level code that simply switches backlight on or off. Probably
* a nice candidate for inclusion in the target/ dir. */
+#ifndef TARGET_TREE
static inline void __backlight_on(void)
{
#ifdef SIMULATOR
@@ -121,7 +125,7 @@ static inline void __backlight_off(void)
outl(((0x100 | 0) << 3), 0x6000d824);
#endif
}
-
+#endif
#if defined(CONFIG_BACKLIGHT) && !defined(BOOTLOADER)