Skip to main content
David.Cheng
Associate III
April 22, 2019
Question

How to call __wfi on RTEMS?

  • April 22, 2019
  • 0 replies
  • 451 views

HI, ALL!

RTEMS is a RTOS. I want to make it enter stop mode like below code

if(PWR_STOPEntry == PWR_STOPEntry_WFI)

 {  

   /* Request Wait For Interrupt */

   __WFI();

 }

 else

 {

   /* Request Wait For Event */

   __WFE();

 }

so i have to call __wfi like under rtems by C

This topic has been closed for replies.