mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-04-12 00:47:49 -04:00
Convert the whole codebase to UTF-8, except docs/COMMITTERS and tools/creative.c, which need checking.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17369 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
ef5fa8eaf5
commit
357ffb3c46
109 changed files with 408 additions and 408 deletions
|
|
@ -9,7 +9,7 @@
|
|||
*
|
||||
* Copyright (C) 2008 by Maurus Cuelenaere
|
||||
*
|
||||
* DM320 I²C driver
|
||||
* DM320 I²C driver
|
||||
*
|
||||
* All files in this archive are subject to the GNU General Public License.
|
||||
* See the file COPYING in the source tree root for full license agreement.
|
||||
|
|
@ -145,12 +145,12 @@ int i2c_read(unsigned short address, unsigned char* buf, int count)
|
|||
void i2c_init(void)
|
||||
{
|
||||
#if 0 //TODO: mimic OF I2C clock settings; currently this is done by the bootloader
|
||||
IO_CLK_MOD2 &= ~CLK_MOD2_I2C; // turn I²C clock off (just to be sure)
|
||||
IO_CLK_MOD2 &= ~CLK_MOD2_I2C; // turn I²C clock off (just to be sure)
|
||||
IO_CLK_LPCTL1 &= ~1; // set Powerdown mode to off
|
||||
IO_CLK_SEL0 &= ~0x800; // set I²C clock to PLLA
|
||||
IO_CLK_DIV4 &= ~0x1F; // I²C clock division = 1
|
||||
IO_CLK_MOD2 |= CLK_MOD2_I2C; // enable I²C clock
|
||||
IO_CLK_SEL0 &= ~0x800; // set I²C clock to PLLA
|
||||
IO_CLK_DIV4 &= ~0x1F; // I²C clock division = 1
|
||||
IO_CLK_MOD2 |= CLK_MOD2_I2C; // enable I²C clock
|
||||
#endif
|
||||
IO_I2C_SCS &= ~0x8; //set clock to 100 kHz
|
||||
IO_INTC_EINT2 &= ~INTR_EINT2_I2C; // disable I²C interrupt
|
||||
IO_INTC_EINT2 &= ~INTR_EINT2_I2C; // disable I²C interrupt
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue