16-bit Proprietary F2MC-16L/16LX/16F Family Support Tools

(2)Configuration

Kernel

The kernel of the real time OS provides its basic functions. It is an event-driven, multitasking real time OS. The functions to be used by application programs can be selected as system calls.

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

Task-supplied synchronization functions

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 single-bit event flag

 

set_flg

Set a single-word event flag

 

clr_flg

Clear a single-bit event flag

 

clr_flg

Clear a single-word event flag

 

wai_flg

Wait for a single-bit event flag (no clear)

 

wai_flg

Wait for a single-word event flag

 

cwai_flg

Wait for a single-bit event flag (clear)

 

pol_flg

Poll a single-bit event flag (no clear)

 

pol_flg

Poll a single-word event flag

Synchronization/transmission functions

cpol_flg

Poll a single-bit event flag (clear)

 

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

 

 

 

MC-16L/LX/FFamily

Support tools

F2

 

161