diff options
author | Magnus Holmgren <magnushol@gmail.com> | 2007-02-17 23:06:50 +0000 |
---|---|---|
committer | Magnus Holmgren <magnushol@gmail.com> | 2007-02-17 23:06:50 +0000 |
commit | 1916576728f8e3b84eab8044e5f2a01ee3d6d943 (patch) | |
tree | 7ba3fadcee22bbc1bbd3ff48381d3bf686e4b1ed /firmware/target/coldfire/iriver | |
parent | 2ad25c88182a1d898b7ba460beba3bd2231be94b (diff) |
Keep delay loop from being optimized away.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12367 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/coldfire/iriver')
-rw-r--r-- | firmware/target/coldfire/iriver/h100/adc-h100.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/coldfire/iriver/h100/adc-h100.c b/firmware/target/coldfire/iriver/h100/adc-h100.c index 5fc10e4b3c..a20b1e8d30 100644 --- a/firmware/target/coldfire/iriver/h100/adc-h100.c +++ b/firmware/target/coldfire/iriver/h100/adc-h100.c @@ -34,7 +34,7 @@ static unsigned char adcdata[NUM_ADC_CHANNELS]; #define DI_HI or_l(0x00200000, &GPIO_OUT) /* delay loop */ -#define DELAY do { int _x; for(_x=0;_x<10;_x++);} while (0) +#define DELAY do { int _x; for(_x=0;_x<10;_x++) asm volatile ("");} while (0) unsigned short adc_scan(int channel) { |