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.

[参考译文] TMS570LS0914:使用 RTOS 在全局禁用中断的情况下进行中断处理

Guru**** 2535750 points


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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1064543/tms570ls0914-interrupt-handling-with-globally-disabled-interrupts-using-rtos

器件型号:TMS570LS0914

在我们的应用中、我们必须禁用 SPI 传输期间的所有中断、以避免通信错误。  函数 portdisable_interrupts()用于此目的。  我在这里问自己如何处理这段时间内丢失的中断?  在我的特定示例中、它涉及到可能错过的 CAN 消息。 如果在禁用的中断期间出现 CAN 消息、那么在重新使用 portEnable_interrupts ()后是否会触发 CAN 中断?

此致、

康斯坦蒂

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    [引用 userid="429359" URL"~/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1064543/tms570ls0914-interrupt-handling-with-globally-disabled-interrupts-using-rtos "]如果在禁用的中断期间出现 CAN 消息,则在重新使用 portEnable_interrupts ()后会触发 CAN 中断?[/quot]

    是的、在中断被启用后、挂起的中断将被处理。