Getting port interrupt status in Events.c

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Getting port interrupt status in Events.c

Jump to solution
774 Views
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!

Labels (1)
Tags (1)
0 Kudos
1 Solution
580 Views
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

 

View solution in original post

0 Kudos
1 Reply
581 Views
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 Kudos