/* RT-Thread config file */ #ifndef __RTTHREAD_CFG_H__ #define __RTTHREAD_CFG_H__ #include #if defined(__CC_ARM) || defined(__CLANG_ARM) #include "RTE_Components.h" #if defined(RTE_USING_FINSH) #define RT_USING_FINSH #endif //RTE_USING_FINSH #endif //(__CC_ARM) || (__CLANG_ARM) /* Utilities */ #define RT_USING_ULOG #define ULOG_OUTPUT_LVL_D #define ULOG_OUTPUT_LVL 7 #define ULOG_ASSERT_ENABLE #define ULOG_LINE_BUF_SIZE 256 /* log format */ #define ULOG_USING_COLOR #define ULOG_OUTPUT_TIME #define ULOG_OUTPUT_LEVEL #define ULOG_OUTPUT_TAG /* end of log format */ #define ULOG_BACKEND_USING_CONSOLE // 在中断 ISR 中输出日志 #define ULOG_USING_ISR_LOG /* end of Utilities */ // <<< 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 16 // Using RT-Thread components initialization // Using RT-Thread components initialization #define RT_USING_COMPONENTS_INIT // // Using rt_using_heap // Using rt_using_heap #define RT_USING_HEAP // // Using rt_using_user_main // Using rt_using_user_main #define RT_USING_USER_MAIN // // the stack size of main thread<1-4086> // Default: 512 #define RT_MAIN_THREAD_STACK_SIZE 1024 // // 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 // // //DEVICE 框架配置 //当系统中加入 device 框架源码时,则需要在 rtconfig.h 中开启以下项 // #define RT_USING_DEVICE #define RT_USING_DEVICE_IPC // Hook Configuration // using hook // using hook #define RT_USING_HOOK // // using idle hook // using idle hook #define RT_USING_IDLE_HOOK // // // Software timers Configuration // Enables user timers #define RT_USING_TIMER_SOFT 0 #if RT_USING_TIMER_SOFT == 0 #undef RT_USING_TIMER_SOFT #endif // 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 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 // Dynamic Heap Management // Dynamic Heap Management //#define RT_USING_HEAP // // using small memory // using small memory #define RT_USING_SMALL_MEM // // using tiny size of memory // using tiny size of memory //#define RT_USING_TINY_SIZE // // // 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 256 // #include "finsh_config.h" #if defined(RT_USING_FINSH) #define FINSH_USING_MSH #define FINSH_USING_MSH_ONLY // Finsh Configuration // the priority of finsh thread <1-7> // the priority of finsh thread // Default: 6 #define __FINSH_THREAD_PRIORITY 5 #define FINSH_THREAD_PRIORITY (RT_THREAD_PRIORITY_MAX / 8 * __FINSH_THREAD_PRIORITY + 1) // the stack of finsh thread <1-4096> // the stack of finsh thread // Default: 4096 (4096Byte) #define FINSH_THREAD_STACK_SIZE 2024 // the history lines of finsh thread <1-32> // the history lines of finsh thread // Default: 5 #define FINSH_HISTORY_LINES 5 #define FINSH_USING_SYMTAB // finsh using history // finsh using history #define FINSH_USING_HISTORY // // #endif #define PKG_USING_PERF_COUNTER #define PKG_USING_PERF_COUNTER_V2241 // #define DEBUG_OUTPUT_SELECT // <<< end of configuration section >>> #endif