Applies to: RTX51 Tiny Real-time Kernel
Information in this article applies to:
I'm creating an application that uses RTX51 Tiny. Can you give me
any tips for using this RTOS?
Yes. Here are several tips that may help you:
Round-robin multitasking is preemptive. It interrupts your task
and switches to a new task after the specified number of OS ticks.
Refer to CONF_TNY.A51.
Use OS_WAIT for cooperative multitasking. When a task
can be delayed for a few OS ticks, call the OS_WAIT
Define tasks in order. Don't skip task numbers. This leaves
blanks in the task table and may waste memory.
OS_WAIT(K_TMO,0,0) doesn't do anything. So, don't use
Declare functions in LARGE model if you are running out
of DATA space. For example:
void task_func (void) large _task_ x
If you rebuild RTX51 Tiny, make sure that you copy the
RTX51TNY.LIB file into the C51LIB folder. If you fail to
do that, the linker includes the OLD RTX51TNY.LIB file.
Article last edited on: 2006-10-29 19:02:31
Rate this article
Disagree? Move your mouse over the bar and click