Keil™, An ARM® Company

RTX166 Tiny User's Guide

Programming Guidelines

There are a few rules you must follow when creating RTX166 Tiny programs.

  • Be sure to include the RTX166T.H header file.
  • Do not create a main C function. RTX166 Tiny has its own main function.
  • Your program must contain at least one task function.
  • Your program must call at least one RTX166 Tiny library routine (like os_wait). Otherwise, the linker will not include the RTX166 Tiny Library.
  • Task 0 is the first function in your program that executes. You must call the os_create_task function from task 0 to run other tasks.
  • Task functions must never exit or return. The task must repeat using a while(1) or similar construct. Use the os_delete_task function to halt a running task.
  • You must specify RTX166 Tiny in µVision or on the linker command line.

Several technical articles about RTX166 Tiny are available on the Keil Software Knowledgebase.