beautypg.com

Bit proprietary f, Support tools – FUJITSU Semiconductor User Manual

Page 162

background image

161

16-bit Proprietary F

2

MC-16L/16LX/16F Family

Support Tools

F

2

MC

-

16L

/L

X/

F Family

S

u

pport too

ls

(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

Task management functions

sta_tsk
ext_tsk
ter_tsk
chg_pri
rot_rdq
get_tid
tsk_sts

Start task
Exit local task successfully
Terminate remote task forcibly
Change task priority
Rotate task ready queue
Get local task ID
Reference for task status

Task-supplied synchronization functions

sus_tsk
rsm_tsk
frsm_tsk
slp_tsk
wai_tsk
wup_tsk
can_wup

Move the task to the suspended state
Resume the task in the suspended state
Forcibly resume the task in the suspended state
Move the task into the wait state
Move the task into the wait state for a given time
Wake up the task in the wait state
Cancel the wakeup request of the task

Synchronization/transmission functions

set_flg
set_flg
clr_flg
clr_flg
wai_flg
wai_flg
cwai_flg
pol_flg
pol_flg
cpol_flg
flg_sts

Set a single-bit event flag
Set a single-word event flag
Clear a single-bit event flag
Clear a single-word event flag
Wait for a single-bit event flag (no clear)
Wait for a single-word event flag
Wait for a single-bit event flag (clear)
Poll a single-bit event flag (no clear)
Poll a single-word event flag
Poll a single-bit event flag (clear)
Reference event flag status

sig_sem
wai_sem
preq_sem
sem_sts

Signal operation to the semaphore (V instruction)
Wait operation to the semaphore (P instruction)
Poll and request the semaphore resources
Reference the semaphore status

snd_msg
rcv_msg
prcv_msg
mbx_sts

Send data to the mailbox
Wait for the receive from the mailbox
Poll and receive message from the mailbox
Reference the mailbox status

Interrupt management function

ret_int
ret_wup
chg_ilv
ilv_sts

Return from interrupt handler
Return to the interrupt processing for task wakeup
Change the interrupt level
Reference the interrupt level status

Memory pool management functions

get_blk
pget_blk
rel_blk
mpl_sts

Wait for the receiving of the fixed length memory block
Poll and get fixed length memory block
Release the fixed length memory block
Reference the memory pool status

Time management functions

set_tim
get_tim
def_cyc
act_cyc
cyh_sts
def_alm
alh_sts
ret_tmr

Set system clock
Reference system clock
Define cyclic handler
Activate/control cyclic handler
Reference cyclic handler status
Define alarm handler
Reference alarm handler status
Return from timer handler

System management function

get_ver

Get version number