os_cfg_app.c Static

os_cfg_app.c Static

As with os_dbg.c, os_cfg_app.c defines a number of ROM variables. These variables, however, reflect the run-time configuration of an application. Specifically, the user will be able to know the RAM footprint (in bytes) of µC/OS-III task stacks, the message pool, and more.

Below is a list of ROM variables provided in os_app_cfg.c, along with their descriptions. These variables represent approximately 100 bytes of code space.

Application code can examine these variables and the application does not need to access them in a critical region since they reside in code space and are therefore not changeable.

ROM Variable

Data Type

Value

ROM Variable

Data Type

Value

OSCfg_IdleTaskStkSizeRAM

CPU_INT32U

sizeof(OSCfg_IdleTaskStk)

This variable indicates the RAM footprint (in bytes) of the µC/OS-III idle task stack.

ROM Variable

Data Type

Value

ROM Variable

Data Type

Value

OSCfg_ISRStkSizeRAM

CPU_INT32U

sizeof(OSCfg_ISRStk)

This variable indicates the RAM footprint (in bytes) of the dedicated Interrupt Service Routine (ISR) stack.

ROM Variable

Data Type

Value

ROM Variable

Data Type

Value

OSCfg_MsgPoolSizeRAM

CPU_INT32U

sizeof(OSCfg_MsgPool)

This variable indicates the RAM footprint (in bytes) of the message pool.

ROM Variable

Data Type

Value

ROM Variable

Data Type

Value

OSCfg_StatTaskStkSizeRAM

CPU_INT32U

sizeof(OSCfg_StatTaskStk)

This variable indicates the RAM footprint (in bytes) of the µC/OS-III statistic task stack.

ROM Variable

Data Type

Value

ROM Variable

Data Type

Value

OSCfg_TickTaskStkSizeRAM

CPU_INT32U

sizeof(OSCfg_TickTaskStk)

This variable indicates the RAM footprint (in bytes) of the µC/OS-III tick task stack.

ROM Variable

Data Type

Value

ROM Variable

Data Type

Value

OSCfg_DataSizeRAM

CPU_INT32U

Total of all configuration RAM

This variable indicates the RAM footprint (in bytes) of all of the configuration variables declared in os_cfg_app.c.