Configuration Options


Set the CMX configuration options in the file src/config/config_oal_os.h. This section lists the available options and their default values.

Note: Set systemwide configuration options in the base package's configuration file; these allow you to disable certain functions or sets of functions. See the HCC OS Abstraction Layer (Base) User Guide for details.

OAL_TICK_RATE

The tick rate in ms. The default is 10.

OAL_MUTEX_COUNT

The maximum number of mutexes. The default is 32.

OAL_EVENT_COUNT

The maximum number of events. The default is 32.

OAL_HIGHEST_PRIORITY, OAL_HIGH_PRIORITY, OAL_NORMAL_PRIORITY, OAL_LOW_PRIORITY,
OAL_LOWEST_PRIORITY

By default these are respectively 5, 10, 15, 20, and 25

OAL_EVENT_FLAG

OAL_EVENT_FLAG's usage depends on the type of event system an RTOS uses. There are two types:

  • Event groups are supported independently of everything else in the system. In this case OAL_EVENT_FLAG does not matter.
  • Each event group is directly controlled by a specific task. In this case all HCC stack internal events use the OAL_EVENT_FLAG as the event flag to set on the tasks event group. None of the tasks invoking HCC API calls should use OAL_EVENT_FLAG for signalling an event. 

 The default is 0x8000.

OAL_FIRST_RESOURCE

The first resource number assigned to the OAL. OAL_MUTEX_COUNT is required. The default is 0.

OAL_ISR_COUNT

The maximum number of interrupt sources supported in HCC modules. The default is 4.

OAL_CMX_VERSION

The CMX version number. The default is 6.