summaryrefslogtreecommitdiff
path: root/firmware/target/arm/tms320dm320/sansa-connect
diff options
context:
space:
mode:
authorTomasz Moń <desowin@gmail.com>2011-12-20 13:36:43 +0000
committerTomasz Moń <desowin@gmail.com>2011-12-20 13:36:43 +0000
commit44d1a262715d0f4891e499661a89a6cd49bbb440 (patch)
treef7fe7d6f1eee80c031db7c285659362fa21c7afe /firmware/target/arm/tms320dm320/sansa-connect
parent4aec0012440ceeeee45913cfe5ce8869597db1f6 (diff)
Sansa Connect: use udelay() in AVR spi_txrx().
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31377 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/tms320dm320/sansa-connect')
-rw-r--r--firmware/target/arm/tms320dm320/sansa-connect/avr-sansaconnect.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/firmware/target/arm/tms320dm320/sansa-connect/avr-sansaconnect.c b/firmware/target/arm/tms320dm320/sansa-connect/avr-sansaconnect.c
index c22bd2c21d..c8b2c9623c 100644
--- a/firmware/target/arm/tms320dm320/sansa-connect/avr-sansaconnect.c
+++ b/firmware/target/arm/tms320dm320/sansa-connect/avr-sansaconnect.c
@@ -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;