libretiny-eu / libretiny

PlatformIO development platform for IoT modules
http://docs.libretiny.eu/
MIT License
382 stars 55 forks source link

RTL87xx chips don't support CHANGE interrupts #255

Closed RF197 closed 4 months ago

RF197 commented 4 months ago

RTL87xx chips don't (formally) support pin change interrupts. However, libraries like pulse_counter (which is used for energy monitoring in the hwl8012 library amongst others) uses it exclusively.

Would it be possible to attach a RISING and FALLING edge interrupt to the same ISR callback? That way these libraries could be supported by these chips...

flohav commented 4 months ago

Is it related to #155 ?

RF197 commented 4 months ago

Oops, missed that one. Looks like there's even a workaround.

Thanks!