Echelon FTXL User Manual

Page 175

Advertising
background image

FTXL User’s Guide

163

OS_LOW_APPLICATION_PRIORITY_BASE Defines

the highest OS priority used for

application tasks running at a lower priority
than any FTXL LonTalk protocol stack

tasks.

Figure 14. Relationships among the Macros for Operating System Task Priorities

The number of reserved priorities is controlled by the following macros:

• NUM_RESERVED_HIGH_PRIORITY_APPLICATION_TASKS (defines

the number of high priority application tasks, and defaults to 0)

• NUM_RESERVED_APPLICATION_PRIORITIES (defines the number of

normal application tasks, and defaults to 1)

The number of application tasks that can run at lower priority than any of the
FTXL tasks is limited only by the number of priorities supported by the operating

system (or for some some operating systems, such as the Micrium μC/OS-II

operating system, the lowest assignable priority).

You must define at least one application task, typically with priority

OS_APPLICATION_PRIORITY_BASE. To support more than one application
task of medium priority, you must override the definition of

NUM_RESERVED_APPLICATION_PRIORITIES. Modify this definition by

performing either of the following tasks:

• Modify the definition of the

NUM_RESERVED_APPLICATION_PRIORITIES macro in the
FtxlOsal.h file

• Define the NUM_RESERVED_APPLICATION_PRIORITIES macro in

the defined symbols section of your application project’s preprocessor
definitions, as shown in Figure 15 on page 164.

Advertising