ifdefed ASMs
This commit is contained in:
parent
f79d3b49f4
commit
f668dff151
|
@ -13,7 +13,9 @@ void work_queue(void){
|
||||||
int start;
|
int start;
|
||||||
|
|
||||||
if (the_queue.qstart == the_queue.qend){
|
if (the_queue.qstart == the_queue.qend){
|
||||||
|
#ifdef ARM
|
||||||
__asm volatile ("WFI");
|
__asm volatile ("WFI");
|
||||||
|
#endif
|
||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -29,7 +31,9 @@ void delayms_queue(uint32_t ms){
|
||||||
int end=_timectr+ms/10;
|
int end=_timectr+ms/10;
|
||||||
do {
|
do {
|
||||||
if (the_queue.qstart == the_queue.qend){
|
if (the_queue.qstart == the_queue.qend){
|
||||||
|
#ifdef ARM
|
||||||
__asm volatile ("WFI");
|
__asm volatile ("WFI");
|
||||||
|
#endif
|
||||||
}else{
|
}else{
|
||||||
work_queue();
|
work_queue();
|
||||||
};
|
};
|
||||||
|
@ -39,7 +43,9 @@ void delayms_queue(uint32_t ms){
|
||||||
void delayms_power(uint32_t ms){
|
void delayms_power(uint32_t ms){
|
||||||
do {
|
do {
|
||||||
ms-=10;
|
ms-=10;
|
||||||
|
#ifdef ARM
|
||||||
__asm volatile ("WFI");
|
__asm volatile ("WFI");
|
||||||
|
#endif
|
||||||
} while(ms>10);
|
} while(ms>10);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue