This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MAP_Interrupt_enableSleepOnIsrExit函数什么作用?

这个函数什么作用?打开关闭有什么差异?

  • 您可以看一下相关说明

    software-dl.ti.com/.../group__interrupt__api.html

    Enables the processor to sleep when exiting an ISR. For low power operation, this is ideal as power cycles are not wasted with the processing required for waking up from an ISR and going back to sleep.

    退出ISR时使芯片进入睡眠状态。对于低功耗操作,这是理想的选择,因为不会浪费从ISR唤醒并返回睡眠所需的处理。

    关闭的话,是下面的函数

    Interrupt_disableSleepOnIsrExit: Disables the processor to sleep when exiting an ISR.