分类: 嵌入式
2015-10-30 16:35:24
Q:KL16低功耗LLS模式唤醒后如何禁止进入LPTMR中断仅进入LLWU中断?
A:根据飞思卡尔官方应用笔记AN4503描述“ Internal module flags can be cleared in the LLWU exception handlers (ISR) or if you leave the module flag set then after the LLWU ISR is complete you enter the module ISR to clear the flag. If you clear the module flag and do not want to enter the module ISR the NVIC clear pending interrupt flag bit must be cleared for the module. Serialization of operations is necessary to ensure the flag are cleared before returning from the LLWU or module ISRs”可以知道禁止进入LPTMR中断的代码示例如下:
点击(此处)折叠或打开