Chinaunix首页 | 论坛 | 博客
  • 博客访问: 31675
  • 博文数量: 7
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 50
  • 用 户 组: 普通用户
  • 注册时间: 2015-10-30 15:43
个人简介

NO NO NO

文章分类

全部博文(7)

文章存档

2015年(7)

我的朋友

分类: 嵌入式

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中断的代码示例如下:

点击(此处)折叠或打开

  1. void LLWU_IRQHander(void)
  2. {
  3.     /**
  4.      * 1.清除LPTMRh中断标志;2.NVIC清除LPTMER的中断挂起标志。
  5.      */
  6.     ///基于KSDK1.2
  7.     LPTMER_Type *base = g_lptmerBase[0];
  8.     LPTME_HAL_ClearIntFlag(base);
  9.     NVIC_ClearPendingIRQ(LPTMER0_IRQn);
  10. }
阅读(1450) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~