32-bit SPARC Family SPARClite Support 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

Function

Instruction

DescriptionDescription

 

 

 

 

sta_tsk

Start task

 

ext_tsk

Terminate own task

 

ter_tsk

Forcibly terminate other task

 

dis_dsp

Disable dispatching

Task management

ena_dsp

Enable dispatching

chg_pri

Change task priority

 

 

rot_rdq

Rotate task ready queue

 

rel_wai

Release other task from wait

 

get_tid

Get own task ID

 

ref_tsk

Get task state

 

sus_tsk

Forcibly set other task to wait state (suspend)

 

rsm_tsk

Restart suspended task

 

frsm_tsk

Forcibly restart suspended task

Task synchronization

slp_tsk

Set own task to wait for wakeup

 

tslp_tsk

Set own task to wait for wakeup (with timeout)

 

wup_tsk

Wakeup other task

 

can_wup

Cancel task wakeup request

 

sig_sem

Signal a semaphore

 

wai_sem

Wait on a semaphore

 

preq_sem

Wait on a semaphore (polling)

 

ref_sem

Get semaphore state

 

set_flg

Set event flag

 

clr_flg

Clear event flag

Synchronization and communications

wai_flg

Wait on an event flag

 

pol_flg

Wait on an event flag (polling)

 

ref_flg

Get event flag state

 

snd_msg

Send to mailbox

 

rcv_msg

Receive from mailbox

 

prcv_msg

Receive from mailbox (polling)

 

ref_mbx

Get mailbox state

 

ret_int

Return from interrupt handler

 

loc_cpu

Disable interrupts and dispatching

Interrupt management

uni_cpu

Enable interrupts and dispatching

 

chg_ipl

Change interrupt level

 

ref_ipl

Get interrupt level

 

get_blk

Get memory block

Memory pool management

pget_blk

Get memory block (polling)

rel_blk

Release memory block

 

 

ref_mpl

Get memory pool state

 

set_tim

Set system clock

 

get_tim

Read system clock

 

dly_tsk

Delay task

 

def_cyc

Define cyclic handler

Time management

act_cyc

Control/activate cyclic handler

 

ref_cyc

Get state of cyclic handler

 

def_alm

Define alarm handler

 

ref_alm

Get state of alarm handler

 

ret_tmr

Return from timer handler

System management

get_ver

Get version number

ref_sys

Get system state

 

 

 

 

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.

SPARClite

Support tools

 

 

271