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.

[参考译文] RTOS/CC2650:按钮中断处理延迟、中断优先级、中断清除

Guru**** 2595805 points
Other Parts Discussed in Thread: CC2650

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/610187/rtos-cc2650-button-interrupt-processing-delay-interrupt-priorities-interrupt-clearing

器件型号:CC2650

工具/软件:TI-RTOS

您好!

我正在使用 CC2650开发定制板、我已经从 Heart Rate 项目复制了按钮处理示例。 按钮处理通常会做出响应、但会有相当长的延迟、 而且经常会错过按压操作。 我尝试调整 key_debounce_timeout、但没有成功。 我想知道这是否是一个中断优先级问题? 如果是、如何设置更高的优先级-我没有找到任何设置 GPIO 引脚中断优先级的示例。 延迟处理的其他原因是什么?

此外,是否在处理中断后自动清除中断标志,或者何时使用 PINCC26XX_clrPendInterrupt,还不清楚?

谢谢

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您好 Katen、

    为了隔离经销商、您可以在 HWI 中驱动 GPIO、尽管我怀疑延迟在任务处理中。

    PIN 驱动程序将负责清除中断。

    祝你一切顺利