mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
Onda VX747/VX777: fix FM radio
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24074 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
722f46af46
commit
d42cdfd91c
2 changed files with 3 additions and 1 deletions
|
|
@ -121,6 +121,7 @@ void i2c_setclk(unsigned int i2cclk)
|
|||
*/
|
||||
static void i2c_open(void)
|
||||
{
|
||||
__cpm_start_i2c();
|
||||
i2c_setclk(10000); /* default 10 KHz */
|
||||
__i2c_enable();
|
||||
}
|
||||
|
|
@ -129,6 +130,7 @@ static void i2c_close(void)
|
|||
{
|
||||
udelay(300); /* wait for STOP goes over. */
|
||||
__i2c_disable();
|
||||
__cpm_stop_i2c();
|
||||
}
|
||||
|
||||
int i2c_read(int device, unsigned char *buf, int count)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue