Change asm() to __asm()

This is required in order to compile with -std=c99
This commit is contained in:
George Oikonomou 2017-11-26 21:23:05 +00:00
parent 1e18f090ac
commit e458240200
4 changed files with 7 additions and 7 deletions

View File

@ -61,7 +61,7 @@
#define DEEP_SLEEP_PM1_THRESHOLD 10
#define DEEP_SLEEP_PM2_THRESHOLD 100
/*---------------------------------------------------------------------------*/
#define assert_wfi() do { asm("wfi"::); } while(0)
#define assert_wfi() do { __asm("wfi"::); } while(0)
/*---------------------------------------------------------------------------*/
#if LPM_CONF_STATS
rtimer_clock_t lpm_stats[3];

View File

@ -83,11 +83,11 @@ fade(unsigned char l)
leds_on(l);
for(i = 0; i < j; ++i) {
asm("nop");
__asm("nop");
}
leds_off(l);
for(i = 0; i < 400 - j; ++i) {
asm("nop");
__asm("nop");
}
}
}

View File

@ -91,11 +91,11 @@ fade(unsigned char l)
leds_on(l);
for(i = 0; i < j; ++i) {
asm("nop");
__asm("nop");
}
leds_off(l);
for(i = 0; i < 400 - j; ++i) {
asm("nop");
__asm("nop");
}
}
}

View File

@ -90,11 +90,11 @@ fade(unsigned char l)
leds_on(l);
for(i = 0; i < j; ++i) {
asm("nop");
__asm("nop");
}
leds_off(l);
for(i = 0; i < 400 - j; ++i) {
asm("nop");
__asm("nop");
}
}
}