summaryrefslogtreecommitdiff
path: root/firmware/target/coldfire/iriver/h100/backlight-h100.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/coldfire/iriver/h100/backlight-h100.c')
-rw-r--r--firmware/target/coldfire/iriver/h100/backlight-h100.c45
1 files changed, 45 insertions, 0 deletions
diff --git a/firmware/target/coldfire/iriver/h100/backlight-h100.c b/firmware/target/coldfire/iriver/h100/backlight-h100.c
new file mode 100644
index 0000000000..8ceac8a6ff
--- /dev/null
+++ b/firmware/target/coldfire/iriver/h100/backlight-h100.c
@@ -0,0 +1,45 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
10 * Copyright (C) 2006 by Linus Nielsen Feltzing
11 *
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
14 *
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
17 *
18 ****************************************************************************/
19#include "config.h"
20#include "cpu.h"
21#include "kernel.h"
22#include "thread.h"
23#include "system.h"
24#include "backlight.h"
25#include "lcd.h"
26
27void __backlight_on(void)
28{
29 and_l(~0x00020000, &GPIO1_OUT);
30}
31
32void __backlight_off(void)
33{
34 or_l(0x00020000, &GPIO1_OUT);
35}
36
37void __remote_backlight_on(void)
38{
39 and_l(~0x00000800, &GPIO_OUT);
40}
41
42void __remote_backlight_off(void)
43{
44 or_l(0x00000800, &GPIO_OUT);
45}