can external interrupt be shared?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

can external interrupt be shared?

775件の閲覧回数
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 返信

652件の閲覧回数
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 件の賞賛
返信