SRTOS
Loading...
Searching...
No Matches
kernel_config.h File Reference

Core configuration parameters for SRTOS. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define STACK_SIZE   128U
 Default stack size for each task, in 32-bit words.
#define MAX_PRIORITIES   2U
 Number of unique task priority levels supported by the scheduler.

Detailed Description

Core configuration parameters for SRTOS.

This file defines system-level constants that control kernel behavior.

Definition in file kernel_config.h.

Macro Definition Documentation

◆ MAX_PRIORITIES

#define MAX_PRIORITIES   2U

Number of unique task priority levels supported by the scheduler.

Priorities range from 0 (lowest) to MAX_PRIORITIES - 1 (highest). Increasing this value allows for increased scheduler clarity but may increase context-switching overhead and decrease performance.

Definition at line 27 of file kernel_config.h.

◆ STACK_SIZE

#define STACK_SIZE   128U

Default stack size for each task, in 32-bit words.

Each task’s stack is statically allocated at creation time. The total size in bytes is STACK_SIZE * 4. Adjust this value based on task complexity and available RAM.

Definition at line 18 of file kernel_config.h.