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.

[参考译文] 编译器:AM335x PRU 中断处理

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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/661941/compiler-am335x-pru-interrupt-handling

工具/软件:TI C/C++编译器

你好。

是否可以在不检查"if"条件的情况下用 C 语言编写代码?
使用中断、例如在 AVR 微控制器(处理程序函数)中是否实现了这一点?

图示:

while (1){

/*检查寄存器 R31的第30位以查看 ARM 是否已启动*/

if (_R31和 host_INT){
//清除事件状态*/
ct_intc.SICR_bit.STS_CLR_IDX = from_arm_host;
//
while (PRU_rpmsg_receive (&transport、&src、&dst、PAYLOAD、&len)=PRU_RPdst_Success){//
将消息回显到我们刚刚收到的同一地址*/
PRU_rpmsg_send (&transport、msg、&len、
有效负载);}
}

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

    大家好、mhan、

    PRU 运行 AM335x、AM437x、AM57x 的 BareMetal 单线程代码-因此它不允许处理程序中断当前正在运行的进程(这在 RTOS 环境中是可能的)。 PRU 代码必须手动轮询以查看是否接收到任何中断。  

    此致、

    Nick