3359 blog.csdn.net/changyourmind/article/details/54973357
进入低功耗模式的两个命令。 这是ARM中CMSIS内核中的命令。 详情请参阅链接大神们的讨论链接http://www.wowo tech.net/arm v8a _ arch/wfe _ WFI.html
cmsis_arm.cc中有以下说明
//*
brief Wait For Interrupt
detailswaitforinterruptisahintinstructionthatsuspendsexecutionuntiloneofanumberofeventsoccurs。
*/
#define __WFI __wfi
//*
brief Wait For Event
detailswaitforeventisahintinstructionthatpermitstheprocessortoenter
低功耗状态-低功耗状态。
*/
#define __WFE __wfe
什么意思? 简而言之:
WFI访问可以通过任意中断唤醒
WFE一进去就会被活动吵醒
WFI=wait for interrupt正在等待中断。 也就是说,在发生下一个中断之前,我不会在这个岗位上工作。
WFE=wait for event等待在下一个事件发生之前不在这个岗位上工作的事件
执行这两个语句会降低CPU的功耗,通常这两个语句可以节省电力。