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:
parent
fa13cbee80
commit
69bd0f82e3
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue