Clipv2/Clip+ : turn off backlight in 0x1b register

Rename clipv2 file

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25378 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Rafaël Carré 2010-03-29 12:43:50 +00:00
parent 60cfc1ddff
commit cc1f6033de
3 changed files with 7 additions and 5 deletions

View File

@ -1226,7 +1226,7 @@ target/arm/as3525/lcd-ssd1303.c
target/arm/as3525/sansa-clipv2/lcd-clipv2.c
target/arm/as3525/sansa-clip/lcd-as-clip.S /* TODO for clipv2 */
target/arm/as3525/sansa-clipv2/button-clip.c
target/arm/as3525/sansa-clipv2/backlight-clip.c
target/arm/as3525/sansa-clipv2/backlight-clipv2.c
#ifndef BOOTLOADER
target/arm/powermgmt-ascodec.c
target/arm/as3525/sansa-clip/powermgmt-clip.c

View File

@ -24,8 +24,6 @@
#include "as3525v2.h"
#include "ascodec-target.h"
/* FIXME : this is clipv2 code, not sure if it works the same on clip+ */
void _backlight_on(void)
{
ascodec_write(0x25, ascodec_read(0x25) | 2); /* lcd power */
@ -36,6 +34,8 @@ void _backlight_on(void)
void _backlight_off(void)
{
ascodec_write(0x25, ascodec_read(0x25) & ~2); /* lcd power */
lcd_enable(false);
ascodec_write(0x25, ascodec_read(0x25) & ~2); /* lcd power */
ascodec_write(0x1c, 8|1);
ascodec_write(0x1b, 0x00);
}

View File

@ -34,8 +34,10 @@ void _backlight_on(void)
void _backlight_off(void)
{
ascodec_write(0x25, ascodec_read(0x25) & ~2); /* lcd power */
lcd_enable(false);
ascodec_write(0x25, ascodec_read(0x25) & ~2); /* lcd power */
ascodec_write(0x1c, 8|1);
ascodec_write(0x1b, 0);
}
void _buttonlight_on(void)