summaryrefslogtreecommitdiff
path: root/firmware/target/arm/as3525/sansa-clip/backlight-target.h
diff options
context:
space:
mode:
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