summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/as3525/sansa-clip/backlight-target.h
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2008-10-31 22:02:41 +0000
committerRafaël Carré <rafael.carre@gmail.com>2008-10-31 22:02:41 +0000
commit603a9c7c7ded195de7af15a35d10f5961f2e88f1 (patch)
treeff215c32de10e82172bf953ae7e043ddc5d353bb /firmware/target/arm/as3525/sansa-clip/backlight-target.h
parentee593c95e22b0361431f97dcc8a91c0264a5485a (diff)
downloadrockbox-603a9c7c7ded195de7af15a35d10f5961f2e88f1.tar.gz
rockbox-603a9c7c7ded195de7af15a35d10f5961f2e88f1.zip
Clip: add backlight and buttonlight code
Revive lcd_enable() as well, and use it in _backlight_on/off() Don't update the lcd framebuffer if the display is off git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18952 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/as3525/sansa-clip/backlight-target.h')
-rw-r--r--firmware/target/arm/as3525/sansa-clip/backlight-target.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/firmware/target/arm/as3525/sansa-clip/backlight-target.h b/firmware/target/arm/as3525/sansa-clip/backlight-target.h
index 9533d0a6b5..5a6ae34728 100644
--- a/firmware/target/arm/as3525/sansa-clip/backlight-target.h
+++ b/firmware/target/arm/as3525/sansa-clip/backlight-target.h
@@ -7,7 +7,7 @@
* \/ \/ \/ \/ \/
* $Id$
*
- * Copyright (C) 2008 ??
+ * Copyright © 2008 Rafaël Carré
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@@ -21,17 +21,23 @@
#ifndef BACKLIGHT_TARGET_H
#define BACKLIGHT_TARGET_H
-static inline bool _backlight_init(void)
-{
- return true;
-}
+#include "stdbool.h"
+#include "lcd.h"
+#include "backlight.h"
+
+#define _backlight_init() true
static inline void _backlight_on(void)
{
+ lcd_enable(true);
}
static inline void _backlight_off(void)
{
+ lcd_enable(false);
}
+void _buttonlight_on(void);
+void _buttonlight_off(void);
+
#endif