1
0
Fork 0
forked from len0rd/rockbox

Keep delay loop from being optimized away.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12367 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Magnus Holmgren 2007-02-17 23:06:50 +00:00
parent 2ad25c8818
commit 1916576728

View file

@ -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)
{