Example #1
0
/**
 * destroy sensor tag mode task
 * @param param optional parameter
 */
void gui_sensorTag_DestroyTasks( void* param )
{
    OSA_TaskDestroy( gui_sensorTag_taskHandler );
    OSA_MsgQDestroy( gui_sensorTag_queueHnd );
    GuiDriver_UnregisterFromNavigation( GUI_NAVIGATION_RIGHT );
    OLED_DestroyDynamicArea();
}
Example #2
0
/**
 * [gui_pedometer_DestroyTasks description]
 * @param param [description]
 */
void gui_pedometer_DestroyTasks( void* param )
{
    OSA_TaskDestroy( gui_pedometer_taskHandler );
    OSA_TaskDestroy( gui_pedometer_step_counter_taskHandler );
    OSA_MsgQDestroy( gui_pedometer_queueHnd );

    pedometer_Deinit();

    OLED_DestroyDynamicArea();

    GuiDriver_LabelDestroy( &gui_pedometer_stepCounter_label );
    GuiDriver_LabelDestroy( &gui_pedometer_stepText_label );

    GuiDriver_LabelDestroy( &gui_pedometer_calCounter_label );
    GuiDriver_LabelDestroy( &gui_pedometer_calText_label );

    GuiDriver_UnregisterFromNavigation( GUI_NAVIGATION_RIGHT );

    isPedometerActive = false;

    power_EnablePowerSave();

    if ( false  == gui_sensorTag_IsActive() )
    {
      GuiDriver_NotifyKW40( GUI_CURRENT_APP_IDLE );
    }
}
uint32_t OS_MsgQ_destroy(os_msgq_handle msgq)
{
    if (kStatus_OSA_Success == OSA_MsgQDestroy((msg_queue_handler_t) msgq))
    {
#if !defined (FSL_RTOS_FREE_RTOS)
        OSA_MemFree(msgq);
#endif
        return (uint32_t) OS_MSGQ_OK;
    }
    else
    {
        return (uint32_t) OS_MSGQ_ERROR;
    }
}