summaryrefslogtreecommitdiff
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 @@
7 * \/ \/ \/ \/ \/ 7 * \/ \/ \/ \/ \/
8 * $Id$ 8 * $Id$
9 * 9 *
10 * Copyright (C) 2008 ?? 10 * Copyright © 2008 Rafaël Carré
11 * 11 *
12 * This program is free software; you can redistribute it and/or 12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License 13 * modify it under the terms of the GNU General Public License
@@ -21,17 +21,23 @@
21#ifndef BACKLIGHT_TARGET_H 21#ifndef BACKLIGHT_TARGET_H
22#define BACKLIGHT_TARGET_H 22#define BACKLIGHT_TARGET_H
23 23
24static inline bool _backlight_init(void) 24#include "stdbool.h"
25{ 25#include "lcd.h"
26 return true; 26#include "backlight.h"
27} 27
28#define _backlight_init() true
28 29
29static inline void _backlight_on(void) 30static inline void _backlight_on(void)
30{ 31{
32 lcd_enable(true);
31} 33}
32 34
33static inline void _backlight_off(void) 35static inline void _backlight_off(void)
34{ 36{
37 lcd_enable(false);
35} 38}
36 39
40void _buttonlight_on(void);
41void _buttonlight_off(void);
42
37#endif 43#endif