217
32-bit FR Family
Support Tools
FR Family
Support tools
(2) Configuration
•Kernel
The kernel provides the basic functions of the real time OS. 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
• Sample programs
Sample programs are provided as practical coding examples for user training purposes.
Function Instruction Description
Task management functions
sta_tsk
ext_tsk
ter_tsk
dis_dsp
ena_dsp
chg_pri
rot_rdq
rel_wai
get_tid
tsk_sts
Start task
Exit local task
Terminate remote task
Disable dispatch
Enable dispatch
Change task priority
Rotate task ready queue
Release remote task from wait state
Get local task ID
Reference task status
Task-supplied synchronization functions
sus_tsk
rsm_tsk
frsm_tsk
slp_tsk
tslp_tsk
wup_tsk
can_wup
Force remote task into wait state
Resume task in forced wait state
Force task in forced wait state to resume execution
Put local task into sleep state
Put local task into sleep state (to sleep until timeout)
Wake up remote task
Cancel task wakeup request
Synchronization/transmission functions
sig_sem
wai_sem
preq_sem
ref_sem
Return semaphore resource
Poll semaphore resource
Poll semaphore resource (polling)
Reference semaphore status
set_flg
clr_flg
wai_flg
pol_flg
twai_flg
ref_flg
Set event flag
Clear event flag
Wait for event flag
Wait for event flag (polling)
Wait for event flag (with timeout)
Reference event flag status
snd_msg
rcv_msg
prcv_msg
trcv_msg
ref_mbx
Send data to mailbox
Receive data from mailbox
Poll and receive message from mailbox (polling)
Receive data from mailbox (with timeout)
Reference mailbox status
Variable length memory pool
get_blk
pget_blk
rel_blk
ref_mpl
Get variable length memory block
Get variable length memory block (polling)
Return variable length memory block
Reference variable length memory block
Fixted length memory pool
get_blf
pget_blf
tget_blf
rel_blf
ref_mpl
Get fixed length memory block
Get fixed length memory block (polling)
Get fixed length memory block (with timeout)
Return fixed length memory block
Reference fixed length memory block status
Interrupt mqnqgement function
ret_int
loc_cpu
uni_cpu
chg_ilm
ref_ilm
Return from interrupt handler
Disable interrupt and dispatch
Enable interrupt and dispatch
Change interrupt level
Reference interrupt level status
Time management functions
set_tim
get_tim
dly_tsk
def_cyc
act_cyc
ref_cyc
def_alm
ref_alm
ret_tmr
Set system clock
Reference system clock
Delay task
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
ref_sys
Get version number
Reference system status