summaryrefslogtreecommitdiff
path: root/firmware/target
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2007-06-19 20:39:30 +0000
committerNils Wallménius <nils@rockbox.org>2007-06-19 20:39:30 +0000
commit8dc1a67bbafc80f07ce2c8926e751c499427b4da (patch)
treed0bc873c7f1e91522ee28e6494cf8f9a50052ec9 /firmware/target
parentb6ede2189a9471966b9572637b216d4a1d500c8d (diff)
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
Diffstat (limited to 'firmware/target')
-rw-r--r--firmware/target/coldfire/iriver/h100/sw_i2c-h100.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/coldfire/iriver/h100/sw_i2c-h100.c b/firmware/target/coldfire/iriver/h100/sw_i2c-h100.c
index cb061875e0..49db2b621d 100644
--- a/firmware/target/coldfire/iriver/h100/sw_i2c-h100.c
+++ b/firmware/target/coldfire/iriver/h100/sw_i2c-h100.c
@@ -42,7 +42,7 @@
#define SDA_HI and_l(~0x00002000, &GPIO1_ENABLE)
/* 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)
{