ChibiOS 21.11.4
chconf.h File Reference

Configuration file template. More...

Go to the source code of this file.

Macros

#define _CHIBIOS_NIL_CONF_
#define _CHIBIOS_NIL_CONF_VER_4_0_
Kernel parameters and options
#define CH_CFG_MAX_THREADS   4
 Maximum number of user threads in the application.
#define CH_CFG_AUTOSTART_THREADS   TRUE
 Auto starts threads when chSysInit() is invoked.
System timer settings
#define CH_CFG_ST_RESOLUTION   32
 System time counter resolution.
#define CH_CFG_ST_FREQUENCY   1000
 System tick frequency.
#define CH_CFG_ST_TIMEDELTA   0
 Time delta constant for the tick-less mode.
Subsystem options
#define CH_CFG_USE_WAITEXIT   TRUE
 Threads synchronization APIs.
#define CH_CFG_USE_SEMAPHORES   TRUE
 Semaphores APIs.
#define CH_CFG_USE_MUTEXES   FALSE
 Mutexes APIs.
#define CH_CFG_USE_EVENTS   TRUE
 Events Flags APIs.
#define CH_CFG_USE_MESSAGES   TRUE
 Synchronous Messages APIs.
OSLIB options
#define CH_CFG_USE_MAILBOXES   TRUE
 Mailboxes APIs.
#define CH_CFG_USE_MEMCORE   TRUE
 Core Memory Manager APIs.
#define CH_CFG_MEMCORE_SIZE   0
 Managed RAM size.
#define CH_CFG_USE_HEAP   TRUE
 Heap Allocator APIs.
#define CH_CFG_USE_MEMPOOLS   TRUE
 Memory Pools Allocator APIs.
#define CH_CFG_USE_OBJ_FIFOS   TRUE
 Objects FIFOs APIs.
#define CH_CFG_USE_PIPES   TRUE
 Pipes APIs.
#define CH_CFG_USE_OBJ_CACHES   TRUE
 Objects Caches APIs.
#define CH_CFG_USE_DELEGATES   TRUE
 Delegate threads APIs.
#define CH_CFG_USE_JOBS   TRUE
 Jobs Queues APIs.
Objects factory options
#define CH_CFG_USE_FACTORY   TRUE
 Objects Factory APIs.
#define CH_CFG_FACTORY_MAX_NAMES_LENGTH   8
 Maximum length for object names.
#define CH_CFG_FACTORY_OBJECTS_REGISTRY   TRUE
 Enables the registry of generic objects.
#define CH_CFG_FACTORY_GENERIC_BUFFERS   TRUE
 Enables factory for generic buffers.
#define CH_CFG_FACTORY_SEMAPHORES   TRUE
 Enables factory for semaphores.
#define CH_CFG_FACTORY_MAILBOXES   TRUE
 Enables factory for mailboxes.
#define CH_CFG_FACTORY_OBJ_FIFOS   TRUE
 Enables factory for objects FIFOs.
#define CH_CFG_FACTORY_PIPES   TRUE
 Enables factory for Pipes.
Debug options
#define CH_DBG_STATISTICS   FALSE
 Debug option, kernel statistics.
#define CH_DBG_SYSTEM_STATE_CHECK   TRUE
 Debug option, system state check.
#define CH_DBG_ENABLE_CHECKS   TRUE
 Debug option, parameters checks.
#define CH_DBG_ENABLE_ASSERTS   TRUE
 System assertions.
#define CH_DBG_ENABLE_STACK_CHECK   TRUE
 Stack check.
Kernel hooks
#define CH_CFG_SYSTEM_INIT_HOOK()
 System initialization hook.
#define CH_CFG_THREAD_EXT_FIELDS    /* Add threads custom fields here.*/
 Threads descriptor structure extension.
#define CH_CFG_THREAD_EXT_INIT_HOOK(tr)
 Threads initialization hook.
#define CH_CFG_THREAD_EXIT_HOOK(tp)
 Threads finalization hook.
#define CH_CFG_IDLE_ENTER_HOOK()
 Idle thread enter hook.
#define CH_CFG_IDLE_LEAVE_HOOK()
 Idle thread leave hook.
#define CH_CFG_SYSTEM_HALT_HOOK(reason)
 System halt hook.

Detailed Description

Configuration file template.

A copy of this file must be placed in each project directory, it contains the application specific kernel settings.

Definition in file nil/templates/chconf.h.