From 8dc1a67bbafc80f07ce2c8926e751c499427b4da Mon Sep 17 00:00:00 2001 From: Nils Wallménius Date: Tue, 19 Jun 2007 20:39:30 +0000 Subject: 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 --- firmware/target/coldfire/iriver/h100/sw_i2c-h100.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'firmware') 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) { -- cgit v1.2.3