Anonymous
Not applicable
Aug 28, 2014
03:08 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aug 28, 2014
03:08 PM
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
Solved! Go to Solution.
1 Solution
Aug 28, 2014
08:01 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aug 28, 2014
08:01 PM
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);
1 Reply
Aug 28, 2014
08:01 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aug 28, 2014
08:01 PM
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);