ChibiOS/NIL
3.1.0
|
Configuration file template. More...
Go to the source code of this file.
Macros | |
Kernel parameters and options | |
#define | CH_CFG_NUM_THREADS 3 |
Number of user threads in the application. More... | |
System timer settings | |
#define | CH_CFG_ST_RESOLUTION 32 |
System time counter resolution. More... | |
#define | CH_CFG_ST_FREQUENCY 1000 |
System tick frequency. More... | |
#define | CH_CFG_ST_TIMEDELTA 0 |
Time delta constant for the tick-less mode. More... | |
Subsystem options | |
#define | CH_CFG_USE_SEMAPHORES TRUE |
Semaphores APIs. More... | |
#define | CH_CFG_USE_MUTEXES FALSE |
Mutexes APIs. More... | |
#define | CH_CFG_USE_EVENTS TRUE |
Events Flags APIs. More... | |
#define | CH_CFG_USE_MAILBOXES TRUE |
Mailboxes APIs. More... | |
#define | CH_CFG_USE_MEMCORE TRUE |
Core Memory Manager APIs. More... | |
#define | CH_CFG_USE_HEAP TRUE |
Heap Allocator APIs. More... | |
#define | CH_CFG_USE_MEMPOOLS TRUE |
Memory Pools Allocator APIs. More... | |
#define | CH_CFG_USE_OBJ_FIFOS TRUE |
Objects FIFOs APIs. More... | |
#define | CH_CFG_MEMCORE_SIZE 0 |
Managed RAM size. More... | |
Objects factory options | |
#define | CH_CFG_USE_FACTORY TRUE |
Objects Factory APIs. More... | |
#define | CH_CFG_FACTORY_MAX_NAMES_LENGTH 8 |
Maximum length for object names. More... | |
#define | CH_CFG_FACTORY_OBJECTS_REGISTRY TRUE |
Enables the registry of generic objects. More... | |
#define | CH_CFG_FACTORY_GENERIC_BUFFERS TRUE |
Enables factory for generic buffers. More... | |
#define | CH_CFG_FACTORY_SEMAPHORES TRUE |
Enables factory for semaphores. More... | |
#define | CH_CFG_FACTORY_MAILBOXES TRUE |
Enables factory for mailboxes. More... | |
#define | CH_CFG_FACTORY_OBJ_FIFOS TRUE |
Enables factory for objects FIFOs. More... | |
Debug options | |
#define | CH_DBG_STATISTICS FALSE |
Debug option, kernel statistics. More... | |
#define | CH_DBG_SYSTEM_STATE_CHECK TRUE |
Debug option, system state check. More... | |
#define | CH_DBG_ENABLE_CHECKS TRUE |
Debug option, parameters checks. More... | |
#define | CH_DBG_ENABLE_ASSERTS TRUE |
System assertions. More... | |
#define | CH_DBG_ENABLE_STACK_CHECK TRUE |
Stack check. More... | |
Kernel hooks | |
#define | CH_CFG_SYSTEM_INIT_HOOK() |
System initialization hook. More... | |
#define | CH_CFG_THREAD_EXT_FIELDS /* Add threads custom fields here.*/ |
Threads descriptor structure extension. More... | |
#define | CH_CFG_THREAD_EXT_INIT_HOOK(tr) |
Threads initialization hook. More... | |
#define | CH_CFG_IDLE_ENTER_HOOK() |
Idle thread enter hook. More... | |
#define | CH_CFG_IDLE_LEAVE_HOOK() |
Idle thread leave hook. More... | |
#define | CH_CFG_SYSTEM_HALT_HOOK(reason) |
System halt hook. More... | |
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 chconf.h.