diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/drivers/i2c.c | 4 | ||||
-rw-r--r-- | firmware/mpeg.c | 4 | ||||
-rw-r--r-- | firmware/target/sh/archos/ondio/fmradio_i2c-ondio.c | 6 |
3 files changed, 7 insertions, 7 deletions
diff --git a/firmware/drivers/i2c.c b/firmware/drivers/i2c.c index 83ac21fae8..fe4114e34d 100644 --- a/firmware/drivers/i2c.c +++ b/firmware/drivers/i2c.c | |||
@@ -121,7 +121,7 @@ void i2c_ack(int bit) | |||
121 | 121 | ||
122 | SCL_INPUT; /* Set the clock to input */ | 122 | SCL_INPUT; /* Set the clock to input */ |
123 | while(!SCL) /* and wait for the MAS to release it */ | 123 | while(!SCL) /* and wait for the MAS to release it */ |
124 | sleep_thread(1); | 124 | sleep(1); |
125 | 125 | ||
126 | DELAY; | 126 | DELAY; |
127 | SCL_OUTPUT; | 127 | SCL_OUTPUT; |
@@ -143,7 +143,7 @@ int i2c_getack(void) | |||
143 | SDA_INPUT; /* And set to input */ | 143 | SDA_INPUT; /* And set to input */ |
144 | SCL_INPUT; /* Set the clock to input */ | 144 | SCL_INPUT; /* Set the clock to input */ |
145 | while(!SCL) /* and wait for the MAS to release it */ | 145 | while(!SCL) /* and wait for the MAS to release it */ |
146 | sleep_thread(1); | 146 | sleep(1); |
147 | 147 | ||
148 | if (SDA) | 148 | if (SDA) |
149 | /* ack failed */ | 149 | /* ack failed */ |
diff --git a/firmware/mpeg.c b/firmware/mpeg.c index f2322e563b..273f630799 100644 --- a/firmware/mpeg.c +++ b/firmware/mpeg.c | |||
@@ -2077,7 +2077,7 @@ void audio_init_playback(void) | |||
2077 | queue_post(&mpeg_queue, MPEG_INIT_PLAYBACK, 0); | 2077 | queue_post(&mpeg_queue, MPEG_INIT_PLAYBACK, 0); |
2078 | 2078 | ||
2079 | while(!init_playback_done) | 2079 | while(!init_playback_done) |
2080 | sleep_thread(1); | 2080 | sleep(1); |
2081 | } | 2081 | } |
2082 | 2082 | ||
2083 | 2083 | ||
@@ -2091,7 +2091,7 @@ void audio_init_recording(unsigned int buffer_offset) | |||
2091 | queue_post(&mpeg_queue, MPEG_INIT_RECORDING, 0); | 2091 | queue_post(&mpeg_queue, MPEG_INIT_RECORDING, 0); |
2092 | 2092 | ||
2093 | while(!init_recording_done) | 2093 | while(!init_recording_done) |
2094 | sleep_thread(1); | 2094 | sleep(1); |
2095 | } | 2095 | } |
2096 | 2096 | ||
2097 | static void init_recording(void) | 2097 | static void init_recording(void) |
diff --git a/firmware/target/sh/archos/ondio/fmradio_i2c-ondio.c b/firmware/target/sh/archos/ondio/fmradio_i2c-ondio.c index f62797480a..0cf5e0b6f8 100644 --- a/firmware/target/sh/archos/ondio/fmradio_i2c-ondio.c +++ b/firmware/target/sh/archos/ondio/fmradio_i2c-ondio.c | |||
@@ -5,7 +5,7 @@ | |||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | 5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < |
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | 6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ |
7 | * \/ \/ \/ \/ \/ | 7 | * \/ \/ \/ \/ \/ |
8 | * $Id:$ | 8 | * $Id$ |
9 | * Physical interface of the Philips TEA5767 in Archos Ondio | 9 | * Physical interface of the Philips TEA5767 in Archos Ondio |
10 | * | 10 | * |
11 | * Copyright (C) 2002 by Linus Nielsen Feltzing | 11 | * Copyright (C) 2002 by Linus Nielsen Feltzing |
@@ -77,7 +77,7 @@ static void fmradio_i2c_ack(bool nack) | |||
77 | 77 | ||
78 | SCL_INPUT; /* Set the clock to input */ | 78 | SCL_INPUT; /* Set the clock to input */ |
79 | while(!SCL) /* and wait for the slave to release it */ | 79 | while(!SCL) /* and wait for the slave to release it */ |
80 | sleep_thread(0); | 80 | sleep(0); |
81 | 81 | ||
82 | DELAY; | 82 | DELAY; |
83 | SCL_OUTPUT; | 83 | SCL_OUTPUT; |
@@ -96,7 +96,7 @@ static int fmradio_i2c_getack(void) | |||
96 | SDA_INPUT; /* And set to input */ | 96 | SDA_INPUT; /* And set to input */ |
97 | SCL_INPUT; /* Set the clock to input */ | 97 | SCL_INPUT; /* Set the clock to input */ |
98 | while(!SCL) /* and wait for the slave to release it */ | 98 | while(!SCL) /* and wait for the slave to release it */ |
99 | sleep_thread(0); | 99 | sleep(0); |
100 | 100 | ||
101 | if (SDA) | 101 | if (SDA) |
102 | /* ack failed */ | 102 | /* ack failed */ |