RTOS, gpio pin interrupts and CAN

03 Aug 2016

Hello! I am just beginning to dig into RTOS. A program I invision is PERIODICALLY transmitting CAN messages and periodically updating the LCD. Along that I would like to process input pins with debounce (used for switches) and receive CAN messages. I suppose I need to use interrupts for these two? But how to check if button was pressed quickly or was kept on for a second? PinDetect?

Thanks!