RTX Tiny
21
3
Creating RTX51 Tiny Applications
Writing RTX51 Tiny programs requires that you include the
RTX51TNY.H
header file
found in the
\C51\INC\
subdirectory in your C program and that you declare your tasks
using the
_task_
function attribute.
RTX51 Tiny programs do not require a
main
C function. The linking process will in-
clude code that will cause execution to begin with task 0.
RTX51 Tiny Configuration
You can modify the RTX51 Tiny configuration file
CONF_TNY.A51
found in the
\C51\LIB\
subdirectory. You can change the following parameters in this configuration
file.
n
Register bank used for the system timer tick interrupt
n
Interval for the system timer
n
Round-robin time-out value
n
Internal data memory size
n
Free stack size after RTX51 Tiny is started
A portion of this file is listed below.
;-----------------------------------------
; This file is part of the 'RTX51 tiny' Real-Time Operating System Package
;-----------------------------------------
; CONF_TNY.A51: This code allows configuration of the
; 'RTX51 tiny' Real Time Operating System
;
; To translate this file use A51 with the following invocation:
;
; A51 CONF_TNY.A51
;
; To link the modified CONF_TNY.OBJ file to your application use the following
; BL51 invocation:
;
; BL51 <your object file list>, CONF_TNY.OBJ <controls>
;
;-----------------------------------------
;
; 'RTX51 tiny' Hardware-Timer
; ===========================
;
; With the following EQU statements the initialization of the 'RTX51 tiny'
; Hardware-Timer can be defined ('RTX51 tiny' uses the 8051 Timer 0 for
; controlling RTX51 software timers).
;
;
; define the register bank used for the timer interrupt.
INT_REGBANK
EQU
1
; default is Registerbank 1
;
;
; define Hardware-Timer Overflow in 8051 machine cycles.
INT_CLOCK
EQU
10000
; default is 10000 cycles
;
;
; define Round-Robin Timeout in Hardware-Timer Ticks.
TIMESHARING
EQU
5
; default is 5 ticks.
;
;
;
; note: Round-Robin can be disabled by using value 0.
;
Содержание RTX51
Страница 4: ......
Страница 6: ......
Страница 20: ......
Страница 24: ......
Страница 39: ...RTX Tiny 39 4...
Страница 40: ......
Страница 44: ...44 RTX51 Tiny Specifications 5...
Страница 68: ...RTX51 TINY REAL TIME OPERATING SYSTEM User s Guide 2 95...