void APP_Tasks ( void )
{

    /* Check the application's current state. */
    switch ( appData.state )
    {
        /* Application's initial state. */
        case APP_STATE_INIT:
        {
            appData.tmrDrvHandle = DRV_TMR_Open ( DRV_TMR_INDEX_0,
                                                  DRV_IO_INTENT_EXCLUSIVE );
            if ( DRV_HANDLE_INVALID != appData.tmrDrvHandle )  // Timer Driver opened?
            {
                APP_TimerAlarmSetup();
                DRV_TMR_AlarmRegister ( appData.tmrDrvHandle,
                                        appData.tmrPeriod,
                                        true,
                                        0,
                                        APP_TimerCallback );
                DRV_TMR_Start(appData.tmrDrvHandle);     // Start the timer

                appData.state = APP_STATE_SERVICE_TASKS; // advance to next state
            }
            break;
        }

        case APP_STATE_SERVICE_TASKS:
        {   
            break;
        }

        /* TODO: implement your application state machine.*/

        /* The default state should never be executed. */
        default:
        {
            /* TODO: Handle error in application's state machine. */
            break;
        }
    }
}