rtconfig.h 9.1 KB
Newer Older
1 2 3 4
/* RT-Thread config file */
#ifndef __RTTHREAD_CFG_H__
#define __RTTHREAD_CFG_H__

5 6 7 8 9 10 11 12 13 14 15
// <RDTConfigurator URL="http://www.rt-thread.com/eclipse">

// <integer name="RT_NAME_MAX" description="Maximal size of kernel object name length" default="6" />
#define RT_NAME_MAX	8
// <integer name="RT_ALIGN_SIZE" description="Alignment size for CPU architecture data access" default="4" />
#define RT_ALIGN_SIZE	8
// <integer name="RT_THREAD_PRIORITY_MAX" description="Maximal level of thread priority" default="2">
// <item description="8">8</item>
// <item description="32">32</item>
// <item description="256">256</item>
// </integer>
16
#define RT_THREAD_PRIORITY_MAX	32
17 18 19 20 21 22 23
// <integer name="RT_TICK_PER_SECOND" description="OS tick per second" default="100" />
#define RT_TICK_PER_SECOND	100
// <section name="RT_DEBUG" description="Kernel Debug Configuration" default="true" >
// #define RT_DEBUG
// <bool name="RT_THREAD_DEBUG" description="Thread debug enable" default="false" />
// #define RT_THREAD_DEBUG
// <bool name="RT_USING_OVERFLOW_CHECK" description="Thread stack over flow detect" default="true" />
24
#define RT_USING_OVERFLOW_CHECK
25
// </section>
26

27
// <bool name="RT_USING_HOOK" description="Using hook functions" default="true" />
28
#define RT_USING_HOOK
29 30 31 32 33 34 35 36 37 38 39 40
// <section name="RT_USING_TIMER_SOFT" description="Using software timer which will start a thread to handle soft-timer" default="true" >
// #define RT_USING_TIMER_SOFT
// <integer name="RT_TIMER_THREAD_PRIO" description="The priority level of timer thread" default="4" />
#define RT_TIMER_THREAD_PRIO	8
// <integer name="RT_TIMER_THREAD_STACK_SIZE" description="The stack size of timer thread" default="512" />
#define RT_TIMER_THREAD_STACK_SIZE	512
// <integer name="RT_TIMER_TICK_PER_SECOND" description="The soft-timer tick per second" default="10" />
#define RT_TIMER_TICK_PER_SECOND	10
// </section>

// <section name="IPC" description="Inter-Thread communication" default="always" >
// <bool name="RT_USING_SEMAPHORE" description="Using semaphore in the system" default="true" />
41
#define RT_USING_SEMAPHORE
42
// <bool name="RT_USING_MUTEX" description="Using mutex in the system" default="true" />
43
#define RT_USING_MUTEX
44
// <bool name="RT_USING_EVENT" description="Using event group in the system" default="true" />
45
#define RT_USING_EVENT
46
// <bool name="RT_USING_MAILBOX" description="Using mailbox in the system" default="true" />
47
#define RT_USING_MAILBOX
48
// <bool name="RT_USING_MESSAGEQUEUE" description="Using message queue in the system" default="true" />
49
#define RT_USING_MESSAGEQUEUE
50
// </section>
51

52 53
// <section name="MM" description="Memory Management" default="always" >
// <bool name="RT_USING_MEMPOOL" description="Using Memory Pool Management in the system" default="true" />
54
#define RT_USING_MEMPOOL
55
// <bool name="RT_USING_HEAP" description="Using Dynamic Heap Management in the system" default="true" />
56
#define RT_USING_HEAP
57
// <bool name="RT_USING_SMALL_MEM" description="Optimizing for small memory" default="false" />
58
#define RT_USING_SMALL_MEM
59 60 61
// <bool name="RT_USING_SLAB" description="Using SLAB memory management for large memory" default="false" />
// #define RT_USING_SLAB
// </section>
62

63
// <section name="RT_USING_DEVICE" description="Using Device Driver Framework" default="true" >
64
#define RT_USING_DEVICE
65 66
// <bool name="RT_USING_SERIAL" description="Using Serial Device Driver Framework" default="true" />
#define RT_USING_SERIAL
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91
// <bool name="RT_USING_UART0_0" description="Using UART0_0" default="true" />
#define RT_USING_UART0_0
// <bool name="RT_USING_UART0_1" description="Using UART0_1" default="false" />
// #define RT_USING_UART0_1
// <bool name="RT_USING_UART1_0" description="Using UART1_0" default="false" />
// #define RT_USING_UART1_0
// <bool name="RT_USING_UART1_1" description="Using UART1_1" default="false" />
// #define RT_USING_UART1_1
// <bool name="RT_USING_UART2_0" description="Using UART2_0" default="false" />
// #define RT_USING_UART2_0
// <bool name="RT_USING_UART2_1" description="Using UART2_1" default="false" />
// #define RT_USING_UART2_1
// <bool name="RT_USING_UART2_2" description="Using UART2_2" default="false" />
// #define RT_USING_UART2_2
// <bool name="RT_USING_UART3_0" description="Using UART3_0" default="false" />
// #define RT_USING_UART3_0
// <bool name="RT_USING_UART3_1" description="Using UART3_1" default="false" />
// #define RT_USING_UART3_1
// <bool name="RT_USING_UART3_2" description="Using UART3_2" default="false" />
// #define RT_USING_UART3_2
// <bool name="RT_USING_UART4_0" description="Using UART4_0" default="false" />
// #define RT_USING_UART4_0
// <bool name="RT_USING_UART4_1" description="Using UART4_1" default="false" />
// #define RT_USING_UART4_1
// <bool name="RT_USING_UART4_2" description="Using UART4_2" default="false" />
92
#define RT_USING_UART4_2
93 94 95 96 97 98 99 100 101 102 103
// <bool name="RT_USING_UART5_0" description="Using UART5_0" default="false" />
// #define RT_USING_UART5_0
// <bool name="RT_USING_UART5_1" description="Using UART5_1" default="false" />
// #define RT_USING_UART5_1
// <bool name="RT_USING_UART5_2" description="Using UART5_2" default="false" />
// #define RT_USING_UART5_2
// <bool name="RT_USING_UART6_0" description="Using UART6_0" default="false" />
// #define RT_USING_UART6_0
// <bool name="RT_USING_UART6_1" description="Using UART6_1" default="false" />
// #define RT_USING_UART6_1
// <bool name="RT_USING_UART7_0" description="Using UART7_0" default="false" />
104
#define RT_USING_UART7_0
105 106
// <bool name="RT_USING_UART7_1" description="Using UART7_1" default="false" />
// #define RT_USING_UART7_1
107
// <integer name="RT_UART_RX_BUFFER_SIZE" description="The buffer size for UART reception" default="64" />
108
#define RT_UART_RX_BUFFER_SIZE	64
109
// </section>
110

111
// <section name="RT_USING_CONSOLE" description="Using console" default="true" >
112
#define RT_USING_CONSOLE
113 114 115
// <integer name="RT_CONSOLEBUF_SIZE" description="The buffer size for console output" default="128" />
#define RT_CONSOLEBUF_SIZE	128
// <string name="RT_CONSOLE_DEVICE_NAME" description="The device name for console" default="uart" />
D
dzzxzz 已提交
116
#define RT_CONSOLE_DEVICE_NAME	"uart0"
117
// </section>
118

119 120 121
// <bool name="RT_USING_COMPONENTS_INIT" description="Using RT-Thread components initialization" default="true" />
#define RT_USING_COMPONENTS_INIT
// <section name="RT_USING_FINSH" description="Using finsh as shell, which is a C-Express shell" default="true" >
122
#define RT_USING_FINSH
123
// <bool name="FINSH_USING_SYMTAB" description="Using symbol table in finsh shell" default="true" />
124
#define FINSH_USING_SYMTAB
125
// <bool name="FINSH_USING_DESCRIPTION" description="Keeping description in symbol table" default="true" />
126
#define FINSH_USING_DESCRIPTION
127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146
// <integer name="FINSH_THREAD_STACK_SIZE" description="The stack size for finsh thread" default="4096" />
#define FINSH_THREAD_STACK_SIZE	4096
// </section>

// <section name="LIBC" description="C Runtime library setting" default="always" >
// <bool name="RT_USING_NEWLIB" description="Using newlib library, only available under GNU GCC" default="true" />
// #define RT_USING_NEWLIB
// <bool name="RT_USING_PTHREADS" description="Using POSIX threads library" default="true" />
// #define RT_USING_PTHREADS
// </section>

// <section name="RT_USING_DFS" description="Device file system" default="true" >
// #define RT_USING_DFS
// <bool name="DFS_USING_WORKDIR" description="Using working directory" default="true" />
// #define DFS_USING_WORKDIR
// <integer name="DFS_FILESYSTEMS_MAX" description="The maximal number of mounted file system" default="4" />
#define DFS_FILESYSTEMS_MAX	2
// <integer name="DFS_FD_MAX" description="The maximal number of opened files" default="4" />
#define DFS_FD_MAX	4
// <bool name="RT_USING_DFS_ELMFAT" description="Using ELM FatFs" default="true" />
D
dzzxzz 已提交
147
#define RT_USING_DFS_ELMFAT
148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166
// <integer name="RT_DFS_ELM_USE_LFN" description="Support long file name" default="0">
// <item description="LFN1">1</item>
// <item description="LFN1">2</item>
// </integer>
#define RT_DFS_ELM_USE_LFN	1
// <integer name="RT_DFS_ELM_MAX_LFN" description="Maximal size of file name length" default="256" />
#define RT_DFS_ELM_MAX_LFN	64
// <bool name="RT_USING_DFS_YAFFS2" description="Using YAFFS2" default="false" />
// #define RT_USING_DFS_YAFFS2
// <bool name="RT_USING_DFS_UFFS" description="Using UFFS" default="false" />
// #define RT_USING_DFS_UFFS
// <bool name="RT_USING_DFS_DEVFS" description="Using devfs for device objects" default="true" />
// #define RT_USING_DFS_DEVFS
// <bool name="RT_USING_DFS_NFS" description="Using NFS v3 client file system" default="false" />
// #define RT_USING_DFS_NFS
// <string name="RT_NFS_HOST_EXPORT" description="NFSv3 host export" default="192.168.1.5:/" />
#define RT_NFS_HOST_EXPORT	"192.168.1.5:/"
// </section>

167 168 169 170 171 172 173
// <bool name="RT_USING_CMSIS_OS" description="Using CMSIS OS API" default="true" />
// #define RT_USING_CMSIS_OS
// <bool name="RT_USING_RTT_CMSIS" description="Using CMSIS in RTT" default="true" />
#define RT_USING_RTT_CMSIS
// <bool name="RT_USING_BSP_CMSIS" description="Using CMSIS in BSP" default="true" />
// #define RT_USING_BSP_CMSIS

174
// </RDTConfigurator>
175 176

#endif