请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
器件型号:TMS570LS1224 我想动态检查我的函数是否已从 ISR 调用。
例如、在 PIC32的 FreeRTOS 端口中、您可以使用:
#define IN_ISR() uxInterruptNesting >0? 对:错
是否有一个 TMS570特殊寄存器来计数我可以轮询的嵌套中断?
谢谢、
Gabriel
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.
我想动态检查我的函数是否已从 ISR 调用。
例如、在 PIC32的 FreeRTOS 端口中、您可以使用:
#define IN_ISR() uxInterruptNesting >0? 对:错
是否有一个 TMS570特殊寄存器来计数我可以轮询的嵌套中断?
谢谢、
Gabriel
感谢您的支持。
对于搜索相同信息的用户、下面是使用 sys_code.h TI SDK API 的代码片段:
uint32_t const PSR =_getCPSRValue_(); uint8_t const 模式=(PSR 和0x1F); bool isInIRQ =(MODE = 18);//<请参阅 ARM Cortex-R4F 技术参考
祝你度过美好的一天
Gabriel。