1
0
Fork 0
forked from len0rd/rockbox

Change files to use the public function sleep() and not the intenal kernel function sleep_thread().

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16719 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Sevakis 2008-03-20 15:20:06 +00:00
parent 24cbf6e90d
commit ed8445f205
3 changed files with 7 additions and 7 deletions

View file

@ -121,7 +121,7 @@ void i2c_ack(int bit)
SCL_INPUT; /* Set the clock to input */ SCL_INPUT; /* Set the clock to input */
while(!SCL) /* and wait for the MAS to release it */ while(!SCL) /* and wait for the MAS to release it */
sleep_thread(1); sleep(1);
DELAY; DELAY;
SCL_OUTPUT; SCL_OUTPUT;
@ -143,7 +143,7 @@ int i2c_getack(void)
SDA_INPUT; /* And set to input */ SDA_INPUT; /* And set to input */
SCL_INPUT; /* Set the clock to input */ SCL_INPUT; /* Set the clock to input */
while(!SCL) /* and wait for the MAS to release it */ while(!SCL) /* and wait for the MAS to release it */
sleep_thread(1); sleep(1);
if (SDA) if (SDA)
/* ack failed */ /* ack failed */

View file

@ -2077,7 +2077,7 @@ void audio_init_playback(void)
queue_post(&mpeg_queue, MPEG_INIT_PLAYBACK, 0); queue_post(&mpeg_queue, MPEG_INIT_PLAYBACK, 0);
while(!init_playback_done) while(!init_playback_done)
sleep_thread(1); sleep(1);
} }
@ -2091,7 +2091,7 @@ void audio_init_recording(unsigned int buffer_offset)
queue_post(&mpeg_queue, MPEG_INIT_RECORDING, 0); queue_post(&mpeg_queue, MPEG_INIT_RECORDING, 0);
while(!init_recording_done) while(!init_recording_done)
sleep_thread(1); sleep(1);
} }
static void init_recording(void) static void init_recording(void)

View file

@ -5,7 +5,7 @@
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
* \/ \/ \/ \/ \/ * \/ \/ \/ \/ \/
* $Id:$ * $Id$
* Physical interface of the Philips TEA5767 in Archos Ondio * Physical interface of the Philips TEA5767 in Archos Ondio
* *
* Copyright (C) 2002 by Linus Nielsen Feltzing * Copyright (C) 2002 by Linus Nielsen Feltzing
@ -77,7 +77,7 @@ static void fmradio_i2c_ack(bool nack)
SCL_INPUT; /* Set the clock to input */ SCL_INPUT; /* Set the clock to input */
while(!SCL) /* and wait for the slave to release it */ while(!SCL) /* and wait for the slave to release it */
sleep_thread(0); sleep(0);
DELAY; DELAY;
SCL_OUTPUT; SCL_OUTPUT;
@ -96,7 +96,7 @@ static int fmradio_i2c_getack(void)
SDA_INPUT; /* And set to input */ SDA_INPUT; /* And set to input */
SCL_INPUT; /* Set the clock to input */ SCL_INPUT; /* Set the clock to input */
while(!SCL) /* and wait for the slave to release it */ while(!SCL) /* and wait for the slave to release it */
sleep_thread(0); sleep(0);
if (SDA) if (SDA)
/* ack failed */ /* ack failed */