From 574b1009a64f8cb53a16aa43c28694486efb8455 Mon Sep 17 00:00:00 2001 From: Catalin Patulea Date: Fri, 2 Nov 2007 05:07:52 +0000 Subject: m:robe 500i port: Add support for the backlight client in the SPI subsystem git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15402 a1c6a512-1295-4272-9138-f99709370657 --- bootloader/mrobe500.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'bootloader/mrobe500.c') diff --git a/bootloader/mrobe500.c b/bootloader/mrobe500.c index 5817052..34814ba 100755 --- a/bootloader/mrobe500.c +++ b/bootloader/mrobe500.c @@ -98,6 +98,9 @@ void touchpad_calibrate_screen(void) set_calibration_points(&tl, &br); } #endif +static const uint8_t bl_low [] = {0xa4, 0x00, 0x55, 0xbb}; +static const uint8_t bl_high[] = {0xa4, 0x00, 0x19, 0xbb}; + void mrdebug(void) { int button=0, *address=0x0; @@ -127,6 +130,10 @@ void mrdebug(void) address+=0x1000; else if (button==BUTTON_RC_REW) address-=0x1000; + else if (button==BUTTON_RC_VOL_DOWN) + spi_block_transfer(SPI_target_BACKLIGHT, bl_low, 4, 0, 0); + else if (button==BUTTON_RC_VOL_UP) + spi_block_transfer(SPI_target_BACKLIGHT, bl_high, 4, 0, 0); // { // short x,y,z1,z2; // tsc2100_read_values(&x, &y, &z1, &z2); -- cgit v1.1