2 * Hyper Operating System V4 Advance
5 * @brief %jp{タスクの起床}%en{Wakeup Task}
7 * Copyright (C) 1998-2006 by Project HOS
8 * http://sourceforge.jp/projects/hos/
12 #include "core/core.h"
15 /** %jp{タスクをサスペンド解除する} */
16 void _kernel_dsp_rsm_tsk(_KERNEL_T_TSKHDL tskhdl)
18 _KERNEL_T_TCB_PTR tcb;
19 _KERNEL_TSK_T_TSKSTAT tskstat;
22 tcb = _KERNEL_TSK_TSKHDL2TCB(tskhdl);
25 tskstat = _KERNEL_TSK_GET_TSKSTAT(tcb);
28 if ( !(tskstat & _KERNEL_TTS_WAI) )
31 _KERNEL_SYS_ADD_RDQ(tskhdl);
35 tskstat &= ~_KERNEL_TTS_SUS;
36 _KERNEL_TSK_SET_TSKSTAT(tcb, tskstat);