mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
Make some asm() statements volatile
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21313 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
b8435f5446
commit
5a5cccf10b
2 changed files with 2 additions and 2 deletions
|
|
@ -37,7 +37,7 @@ do { \
|
|||
} while (0)
|
||||
|
||||
|
||||
#define SLEEP(x) { register int __i; for(__i=0; __i<x; __i++) {asm("nop"); asm("nop");} }
|
||||
#define SLEEP(x) { register int __i; for(__i=0; __i<x; __i++) asm volatile("nop\n nop\n"); }
|
||||
#define DELAY SLEEP(700000);
|
||||
static void _display_pin_init(void)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ do { \
|
|||
} while (0)
|
||||
|
||||
|
||||
#define SLEEP(x) for(i=0; i<x; i++) asm("nop"); asm("nop");
|
||||
#define SLEEP(x) for(i=0; i<x; i++) asm volatile("nop\n nop\n");
|
||||
#define DELAY SLEEP(700000);
|
||||
static void _display_pin_init(void)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue