vi
ref_alm Reference alarm handler status..........................................................................................- 166 -
iref_alm Reference alarm handler status (handler only)................................................................. - 166 -
5.12 System Status Management Function.......................................................................................... - 168 -
rot_rdq Rotate task precedence........................................................................................................ - 169 -
irot_rdq Rotate task precedence (handler only)............................................................................... - 169 -
get_tid Reference task ID in the RUNNING state......................................................................... - 171 -
iget_tid Reference task ID in the RUNNING state (handler only)................................................ - 171 -
loc_cpu Lock the CPU....................................................................................................................... - 172 -
iloc_cpu Lock the CPU (handler only)...............................................................................................- 172 -
unl_cpu Unlock the CPU ...................................................................................................................- 174 -
iunl_cpu Unlock the CPU (handler only)....................................................................................... - 174 -
dis_dsp Disable dispatching .............................................................................................................- 175 -
ena_dsp Enables dispatching.............................................................................................................- 177 -
sns_ctx Reference context................................................................................................................. - 178 -
sns_loc Reference CPU state............................................................................................................ - 179 -
sns_dsp Reference dispatching state ................................................................................................- 180 -
sns_dpn Reference dispatching pending state.................................................................................. - 181 -
5.13 Interrupt Management Function...................................................................................................- 182 -
ret_int Returns from an interrupt handler (when written in assembly language).................. - 183 -
5.14 System Configuration Management Function.............................................................................. - 184 -
ref_ver Reference version information............................................................................................ - 185 -
iref_ver Reference version information (handler only) ...................................................................- 185 -
5.15 Extended Function (Short Data Queue)........................................................................................- 187 -
vsnd_dtq Send to Short data queue ................................................................................................- 188 -
vpsnd_dtq Send to Short data queue (polling)..................................................................................- 188 -
vipsnd_dtq Send to Short data queue (polling, handler only).......................................................... - 188 -
vtsnd_dtq Send to Short data queue (with timeout) ....................................................................... - 188 -
vfsnd_dtq Forced send to Short data queue..................................................................................... - 188 -
vifsnd_dtq Forced send to Short data queue (handler only)............................................................ - 188 -
vrcv_dtq Receive from Short data queue .......................................................................................- 191 -
vprcv_dtq Receive from Short data queue (polling).........................................................................- 191 -
viprcv_dtq Receive from Short data queue (polling,handler only) ..................................................- 191 -
vtrcv_dtq Receive from Short data queue (with timeout) ..............................................................- 191 -
vref_dtq Reference Short data queue status..................................................................................... - 194 -
viref_dtq Reference Short data queue status (handler only).........................................................- 194 -
5.16 Extended Function (Reset Function)............................................................................................. - 196 -
vrst_dtq Clear data queue area .........................................................................................................- 197 -
vrst_vdtq Clear Short data queue area ...........................................................................................- 199 -
vrst_mbx Clear mailbox area........................................................................................................... - 201 -
vrst_mpf Clear fixed-size memory pool area.................................................................................. - 203 -
vrst_mpl Clear variable-size memory pool area............................................................................. - 204 -
6. Applications Development Procedure Overview................................................................................- 205 -
6.1 Overview..........................................................................................................................................- 205 -
6.2 Development Procedure Example..................................................................................................- 207 -
6.2.1 Applications Program Coding................................................................................................. - 207 -
6.2.2 Configuration File Preparation ..............................................................................................- 208 -
6.2.3 Configurator Execution........................................................................................................... - 209 -
6.2.4 System generation................................................................................................................... - 209 -
6.2.5 Writing ROM............................................................................................................................- 210 -
7. Detailed Applications.......................................................................................................................... - 211 -
7.1 Program Coding Procedure in C Language................................................................................... - 211 -
7.1.1 Task Description Procedure.................................................................................................... - 211 -
7.1.2 Writing a Kernel (OS Dependent) Interrupt Handler ..........................................................- 212 -
7.1.3 Writing Non-kernel Interrupt Handler..................................................................................- 213 -
7.1.4 Writing Cyclic Handler/Alarm Handler................................................................................. - 213 -
7.2 Program Coding Procedure in Assembly Language .....................................................................- 215 -
7.2.1 Writing Task............................................................................................................................ - 215 -
7.2.2 Writing Kernel Interrupt Handler......................................................................................... - 216 -