Sansa c200v2 : lcd & backlight support, using the c200v1 lcd driver
commita6a0f53a2758246fdd7a5d24586e9bba0077c5f3
authorfunman <funman@a1c6a512-1295-4272-9138-f99709370657>
Wed, 17 Jun 2009 19:55:27 +0000 (17 19:55 +0000)
committerfunman <funman@a1c6a512-1295-4272-9138-f99709370657>
Wed, 17 Jun 2009 19:55:27 +0000 (17 19:55 +0000)
tree814a3bcd5d0fc6ee0c99d57d5f188e7f113ec29f
parent3ff80cd6411e740880bb30daed8dae9bf8fb4924
Sansa c200v2 : lcd & backlight support, using the c200v1 lcd driver

The LCD driver is unified and lcd_send_command now takes 2 arguments : the command and its argument.
    If there is no argument, it's set to 0 and a NOP command is issued
    If there is more than one argument (set X/Y address), the 2nd argument is sent as a 2nd command, and a NOP command is issued after it.
    Benefit : c200v2 transfers the command and the argument in one 16 bits transfer
    Performance should not be affected since commands without argument are only used in lcd_init() and lcd_enable()

lcd_send_data() now transfers whole lines (or columns) instead of single pixels
yuv is disabled for c200v2 for now

Some buttons can be read, including left button (bit 6 of DBOP_DIN), but for some reason they have no effect in rockbox: to be investigated

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21321 a1c6a512-1295-4272-9138-f99709370657
bootloader/sansa_as3525.c
firmware/SOURCES
firmware/export/config-c200v2.h
firmware/target/arm/as3525/sansa-c200v2/backlight-c200v2.c
firmware/target/arm/as3525/sansa-c200v2/backlight-target.h
firmware/target/arm/as3525/sansa-c200v2/button-c200v2.c
firmware/target/arm/as3525/sansa-c200v2/lcd-c200v2.c [deleted file]
firmware/target/arm/lcd-c200_c200v2.c [moved from firmware/target/arm/sandisk/sansa-c200/lcd-c200.c with 56% similarity]