src/C/sleep.c
void sleep_try_waking_up (e_task_id id)
{
    if (sleep_tab[id].sleep_until < core_systick_get_ticks() ||
        sleep_tab[id].interruptible == true)
    {
        task_set_task_state(id, TASK_MODE_MAINTHREAD, TASK_STATE_RUNNABLE);
    }
}
/*
 * As explain in sleep_round function explanations, some external events may
 * awake the main thread. In that case, the sleep process must be canceled
 * as the awoking process is made by another module.
 * tasks that have requested locked sleep will continue to sleep
 */
As explain in sleep_round function explanations, some external events may
awake the main thread. In that case, the sleep process must be canceled
as the awoking process is made by another module.
tasks that have requested locked sleep will continue to sleep
As explain in sleep_round function explanations some external events may awake the main thread . In that case the sleep process must be canceled as the awoking process is made by another module . tasks that have requested locked sleep will continue to sleep
void sleep_try_waking_up (e_task_id id)
{
    if (sleep_tab[id].sleep_until < core_systick_get_ticks() ||
        sleep_tab[id].interruptible == true)
    {
        task_set_task_state(id, TASK_MODE_MAINTHREAD, TASK_STATE_RUNNABLE);
    }
}
void sleep_try_waking_up ( e_task_id id ) { if ( sleep_tab [ id ] . sleep_until < core_systick_get_ticks ( ) || sleep_tab [ id ] . interruptible == true ) { task_set_task_state ( id , TASK_MODE_MAINTHREAD , TASK_STATE_RUNNABLE ) ; } }
As explain in sleep_round function explanations, some external events may
 awake the main thread.
As explain in sleep_round function explanations some external events may awake the main thread .