typedef enum
{
    /* Application's state machine's initial state. */
    APP_STATE_INIT=0,
//    APP_STATE_SERVICE_TASKS,

    /* TODO: Define states used by the application state machine. */

    /* LED is off while waiting for a switch press. */
    APP_STATE_LED_OFF_NO_PRESS_DETECT,

    /* LED is off and switch press has been detected.  Wait for it to be confirmed. */          
    APP_STATE_LED_OFF_DEBOUNCE_PRESS,

    /* Blink LED while testing for switch release (no press). */
    APP_STATE_BLINK_LED_DEBOUNCE_RELEASE,

    /* Blink LED while waiting for a press to be detected. */
    APP_STATE_BLINK_LED_NO_PRESS_DETECT,

    /* Continue to blink LED while switch press is confirmed. */
    APP_STATE_BLINK_LED_DEBOUNCE_PRESS,

    /* Keep LED off while waiting for switch release (no press).  */
    APP_STATE_LED_OFF_DEBOUNCE_RELEASE,

}APP_STATES;