Question
I need to Debounce Buttons with Press-Hold and Double-Tap detection. I'm using freeRTOS. Is it best to use a hardware timer interrupt, software freeRTOS timer or while(1) loop with osDelay(10) calls in a freeRTOS taks?
Using the while(1) with no timer seems like the simplest implementation and does not require a timer. Does using osDelay(10) inside a while(1) use more CPU than using software/hardware timer interrupt?
