beautypg.com

Bit sparc family sparclite, Support tools, Function instruction descriptiondescription – FUJITSU Semiconductor User Manual

Page 272

background image

271

SPARClite

Sup

port tools

(2) Product Structure

• Kernel

Provides the basic functions of the real time OS. This is an event-driven, multi-tasking, real time OS. You can
selectively incorporate only those system calls that are used by the application.

• System Calls

• Configurator

A configurator program with a multi-window user interface is provided to generate executable programs with an
optimized execution environment for the kernel and application.

• Sample I/O drivers

Source code is provided for sample I/O drivers.

• Sample programs

These provide practical programming examples for user training.

Function

Instruction

DescriptionDescription

Task management

sta_tsk
ext_tsk
ter_tsk
dis_dsp
ena_dsp
chg_pri
rot_rdq
rel_wai
get_tid
ref_tsk

Start task
Terminate own task
Forcibly terminate other task
Disable dispatching
Enable dispatching
Change task priority
Rotate task ready queue
Release other task from wait
Get own task ID
Get task state

Task synchronization

sus_tsk
rsm_tsk
frsm_tsk
slp_tsk
tslp_tsk
wup_tsk
can_wup

Forcibly set other task to wait state (suspend)
Restart suspended task
Forcibly restart suspended task
Set own task to wait for wakeup
Set own task to wait for wakeup (with timeout)
Wakeup other task
Cancel task wakeup request

Synchronization and communications

sig_sem
wai_sem
preq_sem
ref_sem

Signal a semaphore
Wait on a semaphore
Wait on a semaphore (polling)
Get semaphore state

set_flg
clr_flg
wai_flg
pol_flg
ref_flg

Set event flag
Clear event flag
Wait on an event flag
Wait on an event flag (polling)
Get event flag state

snd_msg
rcv_msg
prcv_msg
ref_mbx

Send to mailbox
Receive from mailbox
Receive from mailbox (polling)
Get mailbox state

Interrupt management

ret_int
loc_cpu
uni_cpu
chg_ipl
ref_ipl

Return from interrupt handler
Disable interrupts and dispatching
Enable interrupts and dispatching
Change interrupt level
Get interrupt level

Memory pool management

get_blk
pget_blk
rel_blk
ref_mpl

Get memory block
Get memory block (polling)
Release memory block
Get memory pool state

Time management

set_tim
get_tim
dly_tsk
def_cyc
act_cyc
ref_cyc
def_alm
ref_alm
ret_tmr

Set system clock
Read system clock
Delay task
Define cyclic handler
Control/activate cyclic handler
Get state of cyclic handler
Define alarm handler
Get state of alarm handler
Return from timer handler

System management

get_ver
ref_sys

Get version number
Get system state

32-bit SPARC Family SPARClite

Support Tools