[Answered] Distinction between gpio_isr_register() and gpio_isr_handler_add()
[Answered] Distinction between gpio_isr_register() and gpio_isr_handler_add()
While studying the GPIO interrupt handlers I seem to see two distinct techniques ... one based around an API called gpio_isr_register() and one based around gpio_isr_handler_add(). Unfortunately I'm not sensing the obvious distinct between them. How do they differ? When would I want to use one vs the others? What questions am I failing to ask that would help someone understand the architecture at play here?
Last edited by kolban on Wed Jan 18, 2017 2:37 pm, edited 1 time in total.
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32
Re: Distinction between gpio_isr_register() and gpio_isr_handler_add()
gpio_isr_handler_add is to be used with gpio_install_isr_service to add separate handlers tied to specific gpio pins.
gpio_isr_register is to add a handler for all gpio interrupts if you want to implement your own pin checking.
gpio_isr_register is to add a handler for all gpio interrupts if you want to implement your own pin checking.
Who is online
Users browsing this forum: No registered users and 92 guests