Topic : WFE or WFI issue

Forum : ARM

Original Post
Post Information Post
May 2, 2009 - 6:15pm
Guest

Hi

I want to program a WFE instruction in C. I dont find any libs or includes for this
Can anyone help me sort this out please
I want my cortex togo into sleep mode

Thanks

Ronny

Replies
Post Information Post
+1
0
-1
May 4, 2009 - 11:36am
Raisonance Support Team

What about a simple asm("wfe");

Regards

+1
0
-1
May 4, 2009 - 1:49pm
Guest

manes6969 wrote:
Hi

I dont find any libs or includes for this

Thanks

Ronny

What about ST FWLib's "cortexm3_macro.s" file, which includes this and many
others useful macros...

+1
0
-1
May 6, 2009 - 10:26am
Guest

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).