1
0
Fork 0
forked from len0rd/rockbox

fix writing to registers on the tsc2100

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15265 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jonathan Gordon 2007-10-22 13:51:04 +00:00
parent fa13cbee80
commit 69bd0f82e3

View file

@ -52,7 +52,7 @@ short tsc2100_readreg(int page, int address)
void tsc2100_writereg(int page, int address, short value)
{
unsigned short command = 0x8000|(page << 11)|(address << 5);
unsigned short command = 0x0800|(page << 11)|(address << 5);
unsigned char out[4] = {command >> 8, command & 0xff,
value >> 8, value & 0xff};
spi_block_transfer(SPI_target_TSC2100,