/* RT-Thread config file */ #ifndef __RTTHREAD_CFG_H__ #define __RTTHREAD_CFG_H__ // <<< Use Configuration Wizard in Context Menu >>> // Basic Configuration // Maximal level of thread priority <8-256> // Default: 32 #define RT_THREAD_PRIORITY_MAX 32 // OS tick per second // Default: 1000 (1ms) #define RT_TICK_PER_SECOND 1000 // Alignment size for CPU architecture data access // Default: 4 #define RT_ALIGN_SIZE 4 // the max length of object name<2-16> // Default: 8 #define RT_NAME_MAX 8 // Using RT-Thread components initialization // Using RT-Thread components initialization #define RT_USING_COMPONENTS_INIT // // Using user main // Using user main #define RT_USING_USER_MAIN // // the size of main thread<1-4086> // Default: 512 #define RT_MAIN_THREAD_STACK_SIZE 4096 // // Debug Configuration // enable kernel debug configuration // Default: enable kernel debug configuration //#define RT_DEBUG // // enable components initialization debug configuration<0-1> // Default: 0 #define RT_DEBUG_INIT 0 // thread stack over flow detect // Diable Thread stack over flow detect #define RT_USING_OVERFLOW_CHECK // // // Hook Configuration // using hook // using hook #define RT_USING_HOOK // // using idle hook // using idle hook //#define RT_HOOK_USING_FUNC_PTR // // // Software timers Configuration // Enables user timers // Enables user timers //#define RT_USING_TIMER_SOFT // // The priority level of timer thread <0-31> // Default: 4 #define RT_TIMER_THREAD_PRIO 4 // The stack size of timer thread <0-8192> // Default: 512 #define RT_TIMER_THREAD_STACK_SIZE 512 // // IPC(Inter-process communication) Configuration // Using Semaphore // Using Semaphore #define RT_USING_SEMAPHORE // // Using Mutex // Using Mutex #define RT_USING_MUTEX // // Using Signal // Using Signal //#define RT_USING_SIGNALS // // Using Event // Using Event #define RT_USING_EVENT // // Using MailBox // Using MailBox //#define RT_USING_MAILBOX // // Using Message Queue // Using Message Queue #define RT_USING_MESSAGEQUEUE // // // Memory Management Configuration // Using Mempool Management // Using Mempool Management //#define RT_USING_MEMPOOL // // Dynamic Heap Management // Dynamic Heap Management #define RT_USING_HEAP // // using small memory // using small memory #define RT_USING_SMALL_MEM // // Small Memory Algorithm // Small Memory Algorithm #define RT_USING_SMALL_MEM_AS_HEAP // // // Console Configuration // Using console // Using console #define RT_USING_CONSOLE // // the buffer size of console <1-1024> // the buffer size of console // Default: 128 (128Byte) #define RT_CONSOLEBUF_SIZE 128 // // Enable FinSH Configuration // include shell config // Select this choice if you using FinSH #define RT_USING_FINSH // // #if defined(RT_USING_FINSH) #include "finsh_config.h" #endif // Device Configuration // using device framework // using device framework //#define RT_USING_DEVICE // // // <<< end of configuration section >>> #endif