De-register an ISR for GPIO

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

cross mob
Anonymous
Not applicable

Hi,

I was wondering there was a way to de-register an ISR for a GPIO pin? [i.e. a function opposite of gpio_registerForInterrupt(...)]

I want to be able to enable and disable GPIOs during run-time. I'm using SDK v2.0 on the BCM20737TAG board.

Thanks,

Mike

0 Likes
1 Solution
asridharan
Employee
Employee
10 comments on KBA 5 comments on KBA First comment on KBA

There is no de-register function. You are expected to disable interrupt on the GPIO you no longer want to handle interrupts on.

gpio_configurePin(GPIO_PORT, GPIO_PIN, GPIO_INTERRUPT_DISABLE, GPIO_OUTPUT_LOW);

View solution in original post

1 Reply
asridharan
Employee
Employee
10 comments on KBA 5 comments on KBA First comment on KBA

There is no de-register function. You are expected to disable interrupt on the GPIO you no longer want to handle interrupts on.

gpio_configurePin(GPIO_PORT, GPIO_PIN, GPIO_INTERRUPT_DISABLE, GPIO_OUTPUT_LOW);