summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/target/mips/ingenic_jz47xx/onda_vx747/lcd-onda_vx747.c2
-rw-r--r--firmware/target/mips/ingenic_jz47xx/onda_vx767/lcd-onda_vx767.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/mips/ingenic_jz47xx/onda_vx747/lcd-onda_vx747.c b/firmware/target/mips/ingenic_jz47xx/onda_vx747/lcd-onda_vx747.c
index a2240e0f7d..f9ce62f7da 100644
--- a/firmware/target/mips/ingenic_jz47xx/onda_vx747/lcd-onda_vx747.c
+++ b/firmware/target/mips/ingenic_jz47xx/onda_vx747/lcd-onda_vx747.c
@@ -37,7 +37,7 @@ do { \
37} while (0) 37} while (0)
38 38
39 39
40#define SLEEP(x) { register int __i; for(__i=0; __i<x; __i++) {asm("nop"); asm("nop");} } 40#define SLEEP(x) { register int __i; for(__i=0; __i<x; __i++) asm volatile("nop\n nop\n"); }
41#define DELAY SLEEP(700000); 41#define DELAY SLEEP(700000);
42static void _display_pin_init(void) 42static void _display_pin_init(void)
43{ 43{
diff --git a/firmware/target/mips/ingenic_jz47xx/onda_vx767/lcd-onda_vx767.c b/firmware/target/mips/ingenic_jz47xx/onda_vx767/lcd-onda_vx767.c
index a91e041184..b3cc6980e1 100644
--- a/firmware/target/mips/ingenic_jz47xx/onda_vx767/lcd-onda_vx767.c
+++ b/firmware/target/mips/ingenic_jz47xx/onda_vx767/lcd-onda_vx767.c
@@ -37,7 +37,7 @@ do { \
37} while (0) 37} while (0)
38 38
39 39
40#define SLEEP(x) for(i=0; i<x; i++) asm("nop"); asm("nop"); 40#define SLEEP(x) for(i=0; i<x; i++) asm volatile("nop\n nop\n");
41#define DELAY SLEEP(700000); 41#define DELAY SLEEP(700000);
42static void _display_pin_init(void) 42static void _display_pin_init(void)
43{ 43{