Getting port interrupt status in Events.c

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

Getting port interrupt status in Events.c

跳至解决方案
1,272 次查看
crezyoz
Contributor IV

CW10.2 K70 Bareboard

 

P.E. clears the status of port interrupts prior to calling the event. It stores it in DeviceDataPrv->EventData but that is not accesible externally. It does send a UserData pointer. Not sure how to deal with that though.

 

What is the best method for determining which port pin caused an interrupt in Events.c?

 

thanks!

标签 (1)
标记 (1)
0 项奖励
回复
1 解答
1,078 次查看
ProcessorExpert
Senior Contributor III

Hi,

 

There is the method GetPortEventStatus  that returns the interrupt status. You need to enable it within the Events tab or using the pop-up menu in the project panel. It's visible only in Advanced or Expert view mode (use the buttons on the top of the inspector).

 

best regards
Petr Hradsky
Processor Expert Support Team

 

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,079 次查看
ProcessorExpert
Senior Contributor III

Hi,

 

There is the method GetPortEventStatus  that returns the interrupt status. You need to enable it within the Events tab or using the pop-up menu in the project panel. It's visible only in Advanced or Expert view mode (use the buttons on the top of the inspector).

 

best regards
Petr Hradsky
Processor Expert Support Team

 

0 项奖励
回复