diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2008-03-20 15:20:06 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2008-03-20 15:20:06 +0000 |
commit | ed8445f20527827093128db8d59d7ccb2cf9e385 (patch) | |
tree | 8fcc94fdd3ce507e5f51e1d3cbb8f0aa94d3f4d2 /firmware/drivers/i2c.c | |
parent | 24cbf6e90d379eee3b342e725e30def326e1d4b8 (diff) |
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
Diffstat (limited to 'firmware/drivers/i2c.c')
-rw-r--r-- | firmware/drivers/i2c.c | 4 |
1 files changed, 2 insertions, 2 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) SCL_INPUT; /* Set the clock to input */ while(!SCL) /* and wait for the MAS to release it */ - sleep_thread(1); + sleep(1); DELAY; SCL_OUTPUT; @@ -143,7 +143,7 @@ int i2c_getack(void) SDA_INPUT; /* And set to input */ SCL_INPUT; /* Set the clock to input */ while(!SCL) /* and wait for the MAS to release it */ - sleep_thread(1); + sleep(1); if (SDA) /* ack failed */ |