Creating Rtx51 Tiny Applications; Rtx51 Tiny Configuration - Keil RTX51 Manual

Table of Contents

Advertisement

RTX Tiny

Creating RTX51 Tiny Applications

Writing RTX51 Tiny programs requires that you include the
found in the
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
subdirectory. You can change the following parameters in this configuration
\C51\LIB\
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:
;
;
;
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).
;
;
INT_REGBANK
;
;
INT_CLOCK
;
;
TIMESHARING
;
;
;
subdirectory in your C program and that you declare your tasks
\C51\INC\
This code allows configuration of the
'RTX51 tiny' Real Time Operating System
; define the register bank used for the timer interrupt.
EQU
1
; default is Registerbank 1
; define Hardware-Timer Overflow in 8051 machine cycles.
EQU
10000
; default is 10000 cycles
; define Round-Robin Timeout in Hardware-Timer Ticks.
EQU
5
; default is 5 ticks.
;
; note: Round-Robin can be disabled by using value 0.
header file
RTX51TNY.H
found in the
CONF_TNY.A51
21
3

Advertisement

Table of Contents
loading

Table of Contents