1
0
Fork 0
forked from len0rd/rockbox

Fix iriver H100 i2c driver which was broken by the switch to build with -Os. Fixes FS#7316 and FS#7321

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13676 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Nils Wallménius 2007-06-19 20:39:30 +00:00
parent b6ede2189a
commit 8dc1a67bba

View file

@ -42,7 +42,7 @@
#define SDA_HI and_l(~0x00002000, &GPIO1_ENABLE) #define SDA_HI and_l(~0x00002000, &GPIO1_ENABLE)
/* delay loop to achieve 400kHz at 120MHz CPU frequency */ /* delay loop to achieve 400kHz at 120MHz CPU frequency */
#define DELAY do { int _x; for(_x=0;_x<22;_x++);} while(0) #define DELAY do { volatile int _x; for(_x=0;_x<22;_x++);} while(0)
void sw_i2c_init(void) void sw_i2c_init(void)
{ {