can external interrupt be shared?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

can external interrupt be shared?

774 次查看
precisionman
Contributor I

I have used all external interrupt sources:

   MCF5282_INT_EPORT1,          //  1 Edge port flag 1
   MCF5282_INT_EPORT2,          //  2 Edge port flag 2
   MCF5282_INT_EPORT3,          //  3 Edge port flag 3
   MCF5282_INT_EPORT4,          //  4 Edge port flag 4
   MCF5282_INT_EPORT5,          //  5 Edge port flag 5
   MCF5282_INT_EPORT6,          //  6 Edge port flag 6

I need one more. I mux with one of the current source(port 2). I know which one is triggered, and in my ISR, I check and set the callback function to serve the proper interrupt. However, the trick is how to re-enable interrupt vector, so i wont miss ohter interrupt nor get hung up. My system hangs up after few minutes (no more interrupt from this port)

 

thx.

0 项奖励
回复
1 回复

651 次查看
c0170
Senior Contributor III

Hello precisionman,

 

can you be more specific with your ISR problem? What's your ISR routine now, at least highlight the step your code does in the ISR. How do you set the callback, using lwevent? direct function call inside the ISR?

 

Regards,

MartinK

0 项奖励
回复