From ddd594b03ea7209f1b17b1ce918e585c48bd1df8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Mo=C5=84?= Date: Thu, 15 Dec 2011 15:33:53 +0000 Subject: Sansa Connect: Use sleep() instead udelay() in AVR spi_txrx. This should prevent buffer underruns that can occur during heavy use of buttons or scrollwheel. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31267 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/tms320dm320/sansa-connect/avr-sansaconnect.c | 8 ++++---- firmware/target/arm/tms320dm320/sansa-connect/avr-sansaconnect.h | 1 + firmware/target/arm/tms320dm320/sansa-connect/lcd-sansaconnect.c | 1 + .../target/arm/tms320dm320/sansa-connect/power-sansaconnect.c | 3 +++ firmware/target/arm/tms320dm320/sdmmc-dm320.c | 6 +++--- firmware/target/arm/tms320dm320/system-dm320.c | 7 ++++++- 6 files changed, 18 insertions(+), 8 deletions(-) (limited to 'firmware') diff --git a/firmware/target/arm/tms320dm320/sansa-connect/avr-sansaconnect.c b/firmware/target/arm/tms320dm320/sansa-connect/avr-sansaconnect.c index dedd017cf7..2ed69b6c9b 100644 --- a/firmware/target/arm/tms320dm320/sansa-connect/avr-sansaconnect.c +++ b/firmware/target/arm/tms320dm320/sansa-connect/avr-sansaconnect.c @@ -228,7 +228,9 @@ static void spi_txrx(unsigned char *buf_tx, unsigned char *buf_rx, int n) for (i = 0; i