libretiny-eu / libretiny

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

RTL87xx chips don't support CHANGE interrupts #255

Closed RF197 closed 8 months ago

RF197 commented 9 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 8 months ago

Is it related to #155 ?

RF197 commented 8 months ago

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

Thanks!