Microc/os-ii general options, Maximum number of event control blocks, Other μc/os-ii settings – Echelon FTXL User Manual

Page 179: Other µc/os-ii settings

Advertising
background image

FTXL User’s Guide

167

Maximum Number of Event Control Blocks

The μC/OS-II operating system uses event control blocks for the FTXL OSAL

critical sections, binary semaphores, and events. You define the maximum
number of event control blocks as the sum of the number of critical sections,

binary semaphores, and events. See

Determining Resource Requirements

on

page 160 for information about how to calculate the number of each of these
resources.
The default number of event control blocks can be calculated based on the values

listed in Table 30 on page 160:

• Default number of critical sections: 82
• Default number of binary semaphores: 10
• Default number of events: 10

Thus, the default number of event control blocks that you need to define is 102.

Other µC/OS-II Settings

The example applications that are included with the FTXL Developer’s Kit

provide a working configuration for the Micrium μC/OS-II operating system. If

you use the μC/OS-II operating system for your FTXL application, you can accept
the default values for all of the options, except the following options:

• The maximum number of tasks (see

Maximum Number of Tasks

on page

165)

• The lowest assignable priority (see

Lowest Assignable Task Priority

on

page 166)

• The maximum number of event control blocks (see

Maximum Number of

Event Control Blocks

)

For your FTXL application, you might want to customize the operating-system

configuration to reduce its memory footprint or provide additional functionality.
The following sections describe the settings within the Nios IDE for a μC/OS-II

operating system that runs an FTXL application.
To configure the operating system:

1. Right-click the system library for your project and select Properties to

open the Properties window for the system library.

2. In the Properties window, click RTOS Options to open the MicroC/OS-II

RTOS Options window.

MicroC/OS-II General Options

Table 33 on page 168 describes the general options for the μC/OS-II operating
system.

Advertising