I'm just finished the Introduction to the TI-RTOS class and I'm trying to apply what I learned about period clock interrupts to a one-shot timer. I plan to use the one-shot timer to debounce switch inputs received from a GPIO port. The idea is that I'll clear the GPIO interrupt once the one-shot timer has expired. And I'll reuse the same timer whenever I receive the another GPIO interrupt on the same port.
I'm using a TM4C1294XL (Connected Launchpad) with Code Composer Studio Version: 6.0.0.00190 and TI RTOS 2.00.01.23. I pulled my starter code from the "gpiointerrupt" example in the tirtos_tivac_2_00_01_23_examples folder.
I've attached my gpiointerrupt.c and gpiointerrupt.cfg file for info. These are the only two files changed with respect to TI's "gpiointerrupt" example. I also attached the EK-TM4C1294XLC.c file that was provided in the example.
In the cfg file, I have attempted to set-up a timer (called debounce_timer) with a 10 ms time-out, at which point an ISR function (called debounceFxn) is to be called.
The problem is that my ISR function is never being called and therefore I never clear the GPIO interrupt. My timer's start mode is "timer will be started by user". To start the timer, I'm using "Timer_start(debounce_timer)" within the callback function (called gpioButtonFxn1) that is kicked-off the the receipt of the GPIO switch input.
Any ideas on what I'm doing wrong? Any help would be greatly appreciated!