diff options
author | Catalin Patulea <cat@vv.carleton.ca> | 2007-11-02 05:07:52 +0000 |
---|---|---|
committer | Catalin Patulea <cat@vv.carleton.ca> | 2007-11-02 05:07:52 +0000 |
commit | 574b1009a64f8cb53a16aa43c28694486efb8455 (patch) | |
tree | d60c268c3bd6d416bc12329be2631e0134a29f10 /bootloader/mrobe500.c | |
parent | 5f36e5a35396cf82590cbef8765310f5ece425fa (diff) | |
download | rockbox-574b1009a64f8cb53a16aa43c28694486efb8455.tar.gz rockbox-574b1009a64f8cb53a16aa43c28694486efb8455.zip |
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
Diffstat (limited to 'bootloader/mrobe500.c')
-rwxr-xr-x | bootloader/mrobe500.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bootloader/mrobe500.c b/bootloader/mrobe500.c index 5817052499..34814ba8d5 100755 --- a/bootloader/mrobe500.c +++ b/bootloader/mrobe500.c | |||
@@ -98,6 +98,9 @@ void touchpad_calibrate_screen(void) | |||
98 | set_calibration_points(&tl, &br); | 98 | set_calibration_points(&tl, &br); |
99 | } | 99 | } |
100 | #endif | 100 | #endif |
101 | static const uint8_t bl_low [] = {0xa4, 0x00, 0x55, 0xbb}; | ||
102 | static const uint8_t bl_high[] = {0xa4, 0x00, 0x19, 0xbb}; | ||
103 | |||
101 | void mrdebug(void) | 104 | void mrdebug(void) |
102 | { | 105 | { |
103 | int button=0, *address=0x0; | 106 | int button=0, *address=0x0; |
@@ -127,6 +130,10 @@ void mrdebug(void) | |||
127 | address+=0x1000; | 130 | address+=0x1000; |
128 | else if (button==BUTTON_RC_REW) | 131 | else if (button==BUTTON_RC_REW) |
129 | address-=0x1000; | 132 | address-=0x1000; |
133 | else if (button==BUTTON_RC_VOL_DOWN) | ||
134 | spi_block_transfer(SPI_target_BACKLIGHT, bl_low, 4, 0, 0); | ||
135 | else if (button==BUTTON_RC_VOL_UP) | ||
136 | spi_block_transfer(SPI_target_BACKLIGHT, bl_high, 4, 0, 0); | ||
130 | // { | 137 | // { |
131 | // short x,y,z1,z2; | 138 | // short x,y,z1,z2; |
132 | // tsc2100_read_values(&x, &y, &z1, &z2); | 139 | // tsc2100_read_values(&x, &y, &z1, &z2); |