Upgrading esp-idf-svc from an older release from spring this year to 0.47.3 breaks my attempt for counting edges on a GPIO pin. With the RMT peripheral being used for driving LEDs, I counted edges on an ESP32-C3 using an interrupt handler as follows:
Enabling this interrupt from "main" and re-enabling it from the interrupt handler does not work out as I can't share the PinDriver mutably by reference between them. Moving it to the handler prevents enabling the interrupt from "main".
If and if yes, how is this supposed to work with esp-idf-svc 0.47.3?
Upgrading esp-idf-svc from an older release from spring this year to 0.47.3 breaks my attempt for counting edges on a GPIO pin. With the RMT peripheral being used for driving LEDs, I counted edges on an ESP32-C3 using an interrupt handler as follows:
Enabling this interrupt from "main" and re-enabling it from the interrupt handler does not work out as I can't share the
PinDriver
mutably by reference between them. Moving it to the handler prevents enabling the interrupt from "main".If and if yes, how is this supposed to work with esp-idf-svc 0.47.3?