Search found 2 matches
- Sun Feb 26, 2023 10:01 pm
- Forum: ESP-IDF
- Topic: Code reusing while using interrupts
- Replies: 5
- Views: 2553
Re: Code reusing while using interrupts
Hi @ THE_KONDRAT. As suggested here, threads and isr handler is the most probable answer, using espidf. Config every GPIO as INPUT (with pullup I presume for NEGEDGE or pulldown for POSEDGE) and then add it as an gpio interrupt io_conf.pin_bit_mask = (1ULL<<theMeters[xx].pin); io_conf.intr_type = G...
- Fri Feb 24, 2023 7:12 am
- Forum: ESP-IDF
- Topic: Code reusing while using interrupts
- Replies: 5
- Views: 2553
Code reusing while using interrupts
I have several water flow sensors for which I want to use hardware interrupts. And I don't know how to do it. In order not to write the same code several times, I have to write a class for working with the sensor, and then create several instances in the application environment to work with each sen...