1
0
Fork 0
forked from len0rd/rockbox

Sansa Connect: use udelay() in AVR spi_txrx().

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31377 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Tomasz Moń 2011-12-20 13:36:43 +00:00
parent 4aec001244
commit 44d1a26271
2 changed files with 7 additions and 9 deletions

View file

@ -229,8 +229,8 @@ static void spi_txrx(unsigned char *buf_tx, unsigned char *buf_rx, int n)
{
IO_SERIAL1_TX_DATA = buf_tx[i];
/* a short wait for AVR to process data */
sleep(0);
/* 100 us wait for AVR */
udelay(100);
do
{
@ -240,8 +240,8 @@ static void spi_txrx(unsigned char *buf_tx, unsigned char *buf_rx, int n)
if (buf_rx != NULL)
buf_rx[i] = rxdata & 0xFF;
/* seems to be unneccessary */
//udelay(100);
/* 100 us wait to give AVR time to process data */
udelay(100);
}
IO_SERIAL1_TX_ENABLE = 0;