Determine Enabled State of interrupt

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
DaHu_285096
Level 5
Level 5
10 likes received 250 replies posted 100 replies posted

I am porting some code from STM32 across to PSOC5LP.

One of the requirements is to be able to Read the enable state of an external interrupt, disable the interrupt and then put it back into same state as before being disabled.

I have a Digital input pin going to a derived interrupt. I started it using the StartEx and can stop using Stop but what command can I use that gives result like this:

lastState = MyExtInterrupt_Enabled();

Thanks

0 Likes
1 Solution
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

For isr component there is a isr_GetState() API which returns the enabled/disabled state.

Bob

View solution in original post

0 Likes
1 Reply
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

For isr component there is a isr_GetState() API which returns the enabled/disabled state.

Bob

0 Likes