Forum : ARM
Original Post
| Post Information | Post |
|---|---|
|
May 2, 2009 - 6:15pm
|
Hi I want to program a WFE instruction in C. I dont find any libs or includes for this Thanks Ronny |
Forum : ARM
| Post Information | Post |
|---|---|
|
May 2, 2009 - 6:15pm
|
Hi I want to program a WFE instruction in C. I dont find any libs or includes for this Thanks Ronny |
What about a simple
asm("wfe");Regards
What about ST FWLib's "cortexm3_macro.s" file, which includes this and many
others useful macros...
We have:
asm("wfi"); //To save energy while doing nothing...in the main of CircleOS, and it works. It does not need any additional lib (inline assembly).