typedef struct
{
    /* The application's current state */
    APP_STATES state;

    /* TODO: Define any additional data used by the application. */

    /* Handle to the timer object.  */
    SYS_TMR_HANDLE  tmrObj;

    /* Change in switch detected. */
    bool            changeNoticed;

    /* Flag indicating when the switch has been pressed. */
    bool            switchHasBeenPressed;

    /* Button de-bounce counter. */
    unsigned int    debounceCounter;

    /* Button timeout counter */
    unsigned int    timeoutCounter;    

} APP_DATA;