summaryrefslogtreecommitdiff
path: root/firmware/target/arm/sandisk/sansa-e200/backlight-e200.c
diff options
context:
space:
mode:
authorMark Arigo <markarigo@gmail.com>2007-09-06 03:01:41 +0000
committerMark Arigo <markarigo@gmail.com>2007-09-06 03:01:41 +0000
commit4f3bcbbb11905c95337fcbe670a1b7da477fbf13 (patch)
tree97b871d0ff401cd58ffb94ab5c33da87a2fd3e28 /firmware/target/arm/sandisk/sansa-e200/backlight-e200.c
parent8a7ae9f3aa6b12c92aef255102e05b07ad630f03 (diff)
downloadrockbox-4f3bcbbb11905c95337fcbe670a1b7da477fbf13.zip
rockbox-4f3bcbbb11905c95337fcbe670a1b7da477fbf13.tar.gz
rockbox-4f3bcbbb11905c95337fcbe670a1b7da477fbf13.tar.bz2
rockbox-4f3bcbbb11905c95337fcbe670a1b7da477fbf13.tar.xz
Move files that will be common to the Sansa e200 and c200
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14624 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/sandisk/sansa-e200/backlight-e200.c')
-rw-r--r--firmware/target/arm/sandisk/sansa-e200/backlight-e200.c58
1 files changed, 0 insertions, 58 deletions
diff --git a/firmware/target/arm/sandisk/sansa-e200/backlight-e200.c b/firmware/target/arm/sandisk/sansa-e200/backlight-e200.c
deleted file mode 100644
index 29c6ab4..0000000
--- a/firmware/target/arm/sandisk/sansa-e200/backlight-e200.c
+++ /dev/null
@@ -1,58 +0,0 @@
-/***************************************************************************
- * __________ __ ___.
- * Open \______ \ ____ ____ | | _\_ |__ _______ ___
- * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
- * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
- * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
- * \/ \/ \/ \/ \/
- * $Id$
- *
- * Copyright (C) 2006 by Barry Wardell
- *
- * All files in this archive are subject to the GNU General Public License.
- * See the file COPYING in the source tree root for full license agreement.
- *
- * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
- * KIND, either express or implied.
- *
- ****************************************************************************/
-#include "backlight-target.h"
-#include "system.h"
-#include "lcd.h"
-#include "backlight.h"
-#include "i2c-pp.h"
-
-static unsigned short backlight_brightness = DEFAULT_BRIGHTNESS_SETTING;
-
-void __backlight_set_brightness(int brightness)
-{
- backlight_brightness = brightness;
-
- if (brightness > 0)
- __backlight_on();
- else
- __backlight_off();
-}
-
-void __backlight_on(void)
-{
- lcd_enable(true); /* power on lcd */
- pp_i2c_send( 0x46, 0x23, backlight_brightness);
-}
-
-void __backlight_off(void)
-{
- pp_i2c_send( 0x46, 0x23, 0x0);
- lcd_enable(false); /* power off lcd */
-}
-
-
-void __button_backlight_on(void)
-{
- GPIOG_OUTPUT_VAL |=0x80;
-}
-
-void __button_backlight_off(void)
-{
- GPIOG_OUTPUT_VAL &=~ 0x80;
-}