gpio_intr_handler_register()

muris
Posts: 35
Joined: Fri Oct 24, 2014 7:25 pm
Location: Bosnia-Herzegovina
Contact:

gpio_intr_handler_register()

Postby muris » Thu Nov 27, 2014 8:28 pm

Any tutorial on how to use pin interrupts?

Thanks!

muris
Posts: 35
Joined: Fri Oct 24, 2014 7:25 pm
Location: Bosnia-Herzegovina
Contact:

Re: gpio_intr_handler_register()

Postby muris » Thu Nov 27, 2014 8:37 pm

Never mind, I found something here: https://github.com/willemwouters/ESP826 ... r/io/key.c

guan
Posts: 17
Joined: Wed Oct 29, 2014 8:41 am

Re: gpio_intr_handler_register()

Postby guan » Sun Nov 30, 2014 12:26 am

Do we know if there are interrupts on every GPIO?

costaud
Posts: 138
Joined: Fri Oct 24, 2014 7:40 pm

Re: gpio_intr_handler_register()

Postby costaud » Sun Nov 30, 2014 2:03 am

guan wrote:Do we know if there are interrupts on every GPIO?

All the GPIOs share a same interrupt source , in the interrupt handler, read the (GPIO_STATUS_ADDRESS) register to decide which GPIO trigger the interrupt signal.
uint32 gpio_status = GPIO_REG_READ(GPIO_STATUS_ADDRESS);

Who is online

Users browsing this forum: No registered users and 211 guests