NMEA2000-Data-Sender icon indicating copy to clipboard operation
NMEA2000-Data-Sender copied to clipboard

xSemaphoreGiveFromISR should be used in interrupt handler. Debouncing code is missing too

Open mgrouch opened this issue 3 months ago • 0 comments

xSemaphoreGiveFromISR should be used in interrupt handler.

Debouncing code is missing too. Without debouncing in interrupt handler the counts might be wrong.

Here is an article with examples on how to debounce and synchronize interrupt handler with another task

https://circuitdigest.com/microcontroller-projects/arduino-freertos-tutorial-using-semaphore-and-mutex-in-freertos-with-arduino

Thanks

mgrouch avatar Nov 01 '24 18:11 mgrouch