Macros
chconf.h File Reference

Go to the source code of this file.

Macros

#define CHPRINTF_USE_FLOAT   TRUE
 
#define CORTEX_SIMPLIFIED_PRIORITY   TRUE
 
#define PORT_IDLE_THREAD_STACK_SIZE   64
 
#define PORT_INT_REQUIRED_STACK   128
 
Kernel parameters and options
#define CH_FREQUENCY   10000
 System tick frequency. More...
 
#define CH_TIME_QUANTUM   4
 Round robin interval. More...
 
#define CH_MEMCORE_SIZE   0
 Managed RAM size. More...
 
#define CH_NO_IDLE_THREAD   FALSE
 Idle thread automatic spawn suppression. More...
 
Performance options
#define CH_OPTIMIZE_SPEED   TRUE
 OS optimization. More...
 
Subsystem options
#define CH_USE_REGISTRY   TRUE
 Threads registry APIs. More...
 
#define CH_USE_WAITEXIT   TRUE
 Threads synchronization APIs. More...
 
#define CH_USE_SEMAPHORES   TRUE
 Semaphores APIs. More...
 
#define CH_USE_SEMAPHORES_PRIORITY   FALSE
 Semaphores queuing mode. More...
 
#define CH_USE_SEMSW   TRUE
 Atomic semaphore API. More...
 
#define CH_USE_MUTEXES   TRUE
 Mutexes APIs. More...
 
#define CH_USE_CONDVARS   TRUE
 Conditional Variables APIs. More...
 
#define CH_USE_CONDVARS_TIMEOUT   TRUE
 Conditional Variables APIs with timeout. More...
 
#define CH_USE_EVENTS   TRUE
 Events Flags APIs. More...
 
#define CH_USE_EVENTS_TIMEOUT   TRUE
 Events Flags APIs with timeout. More...
 
#define CH_USE_MESSAGES   TRUE
 Synchronous Messages APIs. More...
 
#define CH_USE_MESSAGES_PRIORITY   FALSE
 Synchronous Messages queuing mode. More...
 
#define CH_USE_MAILBOXES   TRUE
 Mailboxes APIs. More...
 
#define CH_USE_QUEUES   TRUE
 I/O Queues APIs. More...
 
#define CH_USE_MEMCORE   TRUE
 Core Memory Manager APIs. More...
 
#define CH_USE_HEAP   TRUE
 Heap Allocator APIs. More...
 
#define CH_USE_MALLOC_HEAP   FALSE
 C-runtime allocator. More...
 
#define CH_USE_MEMPOOLS   TRUE
 Memory Pools Allocator APIs. More...
 
#define CH_USE_DYNAMIC   TRUE
 Dynamic Threads APIs. More...
 
Debug options
#define CH_DBG_SYSTEM_STATE_CHECK   FALSE
 Debug option, system state check. More...
 
#define CH_DBG_ENABLE_CHECKS   FALSE
 Debug option, parameters checks. More...
 
#define CH_DBG_ENABLE_ASSERTS   FALSE
 Debug option, consistency checks. More...
 
#define CH_DBG_ENABLE_TRACE   FALSE
 Debug option, trace buffer. More...
 
#define CH_DBG_ENABLE_STACK_CHECK   FALSE
 Debug option, stack checks. More...
 
#define CH_DBG_FILL_THREADS   FALSE
 Debug option, stacks initialization. More...
 
#define CH_DBG_THREADS_PROFILING   TRUE
 Debug option, threads profiling. More...
 
Kernel hooks
#define THREAD_EXT_FIELDS   /* Add threads custom fields here.*/
 Threads descriptor structure extension. More...
 
#define THREAD_EXT_INIT_HOOK(tp)
 Threads initialization hook. More...
 
#define THREAD_EXT_EXIT_HOOK(tp)
 Threads finalization hook. More...
 
#define THREAD_CONTEXT_SWITCH_HOOK(ntp, otp)
 Context switch hook. More...
 
#define IDLE_LOOP_HOOK()
 Idle Loop hook. More...
 
#define SYSTEM_TICK_EVENT_HOOK()
 System tick event hook. More...
 
#define SYSTEM_HALT_HOOK()
 System halt hook. More...