
(2)Configuration
•Kernel
The kernel of the real time OS provides its basic functions. It is an
•System calls
Function | Instruction | Description | |
| sta_tsk | Start task | |
| ext_tsk | Exit local task successfully | |
| ter_tsk | Terminate remote task forcibly | |
Task management functions | chg_pri | Change task priority | |
| rot_rdq | Rotate task ready queue | |
| get_tid | Get local task ID | |
| tsk_sts | Reference for task status | |
| sus_tsk | Move the task to the suspended state | |
| rsm_tsk | Resume the task in the suspended state | |
| frsm_tsk | Forcibly resume the task in the suspended state | |
slp_tsk | Move the task into the wait state | ||
| wai_tsk | Move the task into the wait state for a given time | |
| wup_tsk | Wake up the task in the wait state | |
| can_wup | Cancel the wakeup request of the task | |
| set_flg | Set a | |
| set_flg | Set a | |
| clr_flg | Clear a | |
| clr_flg | Clear a | |
| wai_flg | Wait for a | |
| wai_flg | Wait for a | |
| cwai_flg | Wait for a | |
| pol_flg | Poll a | |
| pol_flg | Poll a | |
Synchronization/transmission functions | cpol_flg | Poll a | |
| flg_sts | Reference event flag status | |
| sig_sem | Signal operation to the semaphore (V instruction) | |
| wai_sem | Wait operation to the semaphore (P instruction) | |
| preq_sem | Poll and request the semaphore resources | |
| sem_sts | Reference the semaphore status | |
| snd_msg | Send data to the mailbox | |
| rcv_msg | Wait for the receive from the mailbox | |
| prcv_msg | Poll and receive message from the mailbox | |
| mbx_sts | Reference the mailbox status | |
| ret_int | Return from interrupt handler | |
Interrupt management function | ret_wup | Return to the interrupt processing for task wakeup | |
chg_ilv | Change the interrupt level | ||
| |||
| ilv_sts | Reference the interrupt level status | |
| get_blk | Wait for the receiving of the fixed length memory block | |
Memory pool management functions | pget_blk | Poll and get fixed length memory block | |
rel_blk | Release the fixed length memory block | ||
| |||
| mpl_sts | Reference the memory pool status | |
| set_tim | Set system clock | |
| get_tim | Reference system clock | |
| def_cyc | Define cyclic handler | |
Time management functions | act_cyc | Activate/control cyclic handler | |
cyh_sts | Reference cyclic handler status | ||
| |||
| def_alm | Define alarm handler | |
| alh_sts | Reference alarm handler status | |
| ret_tmr | Return from timer handler | |
System management function | get_ver | Get version number | |
|
|
|
Support tools | |
F2 |
|
161