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:
parent
2ad25c8818
commit
1916576728
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue