rtconfig.h 4.3 KB
Newer Older
D
DengQilong 已提交
1 2 3 4 5 6 7 8 9 10
#ifndef RT_CONFIG_H__
#define RT_CONFIG_H__

/* Automatically generated file; DO NOT EDIT. */
/* RT-Thread Configuration */

/* RT-Thread Kernel */

#define RT_NAME_MAX 8
#define RT_ALIGN_SIZE 4
T
tanek liang 已提交
11
#define RT_THREAD_PRIORITY_32
D
DengQilong 已提交
12 13
#define RT_THREAD_PRIORITY_MAX 32
#define RT_TICK_PER_SECOND 1000
B
Bernard Xiong 已提交
14 15
#define RT_USING_OVERFLOW_CHECK
#define RT_USING_HOOK
Lawlieta's avatar
Lawlieta 已提交
16
#define RT_IDEL_HOOK_LIST_SIZE 4
D
DengQilong 已提交
17
#define IDLE_THREAD_STACK_SIZE 256
B
Bernard Xiong 已提交
18
#define RT_USING_TIMER_SOFT
D
DengQilong 已提交
19 20
#define RT_TIMER_THREAD_PRIO 4
#define RT_TIMER_THREAD_STACK_SIZE 512
Lawlieta's avatar
Lawlieta 已提交
21
#define RT_DEBUG
D
DengQilong 已提交
22 23 24

/* Inter-Thread communication */

B
Bernard Xiong 已提交
25 26 27 28 29
#define RT_USING_SEMAPHORE
#define RT_USING_MUTEX
#define RT_USING_EVENT
#define RT_USING_MAILBOX
#define RT_USING_MESSAGEQUEUE
D
DengQilong 已提交
30 31

/* Memory Management */
B
Bernard Xiong 已提交
32 33 34 35

#define RT_USING_MEMPOOL
#define RT_USING_MEMHEAP
#define RT_USING_SMALL_MEM
T
tanek liang 已提交
36
#define RT_USING_HEAP
D
DengQilong 已提交
37 38

/* Kernel Device Object */
B
Bernard Xiong 已提交
39 40 41

#define RT_USING_DEVICE
#define RT_USING_CONSOLE
D
DengQilong 已提交
42 43
#define RT_CONSOLEBUF_SIZE 128
#define RT_CONSOLE_DEVICE_NAME "uart0"
T
tanek liang 已提交
44
#define RT_USING_MODULE
45 46 47
#define ARCH_ARM
#define ARCH_ARM_CORTEX_M
#define ARCH_ARM_CORTEX_M4
D
DengQilong 已提交
48 49

/* RT-Thread Components */
B
Bernard Xiong 已提交
50 51

#define RT_USING_COMPONENTS_INIT
D
DengQilong 已提交
52 53 54

/* C++ features */

T
tanek liang 已提交
55
#define RT_USING_CPLUSPLUS
D
DengQilong 已提交
56 57 58

/* Command shell */

B
Bernard Xiong 已提交
59
#define RT_USING_FINSH
60
#define FINSH_THREAD_NAME "tshell"
D
DengQilong 已提交
61
#define FINSH_USING_HISTORY
62
#define FINSH_HISTORY_LINES 5
B
Bernard Xiong 已提交
63 64
#define FINSH_USING_SYMTAB
#define FINSH_USING_DESCRIPTION
D
DengQilong 已提交
65 66 67
#define FINSH_THREAD_PRIORITY 20
#define FINSH_THREAD_STACK_SIZE 4096
#define FINSH_CMD_SIZE 80
B
Bernard Xiong 已提交
68 69
#define FINSH_USING_MSH
#define FINSH_USING_MSH_DEFAULT
Lawlieta's avatar
Lawlieta 已提交
70
#define FINSH_ARG_MAX 10
B
Bernard Xiong 已提交
71

D
DengQilong 已提交
72
/* Device virtual file system */
B
Bernard Xiong 已提交
73 74 75

#define RT_USING_DFS
#define DFS_USING_WORKDIR
D
DengQilong 已提交
76
#define DFS_FILESYSTEMS_MAX 2
77
#define DFS_FILESYSTEM_TYPES_MAX 2
Lawlieta's avatar
Lawlieta 已提交
78
#define DFS_FD_MAX 16
B
Bernard Xiong 已提交
79
#define RT_USING_DFS_ELMFAT
D
DengQilong 已提交
80 81 82 83 84 85 86 87 88 89

/* elm-chan's FatFs, Generic FAT Filesystem Module */

#define RT_DFS_ELM_CODE_PAGE 437
#define RT_DFS_ELM_WORD_ACCESS
#define RT_DFS_ELM_USE_LFN_0
#define RT_DFS_ELM_USE_LFN 0
#define RT_DFS_ELM_MAX_LFN 255
#define RT_DFS_ELM_DRIVES 2
#define RT_DFS_ELM_MAX_SECTOR_SIZE 512
B
Bernard Xiong 已提交
90
#define RT_DFS_ELM_REENTRANT
Lawlieta's avatar
Lawlieta 已提交
91
#define RT_USING_DFS_DEVFS
D
DengQilong 已提交
92 93 94 95

/* Device Drivers */

#define RT_USING_DEVICE_IPC
Lawlieta's avatar
Lawlieta 已提交
96
#define RT_PIPE_BUFSZ 512
D
DengQilong 已提交
97 98 99 100 101 102 103
#define RT_USING_SERIAL
#define RT_USING_I2C
#define RT_USING_I2C_BITOPS
#define RT_USING_PIN
#define RT_USING_MTD_NAND
#define RT_USING_RTC
#define RT_USING_SDIO
Lawlieta's avatar
Lawlieta 已提交
104 105 106 107 108
#define RT_SDIO_STACK_SIZE 512
#define RT_SDIO_THREAD_PRIORITY 15
#define RT_MMCSD_STACK_SIZE 1024
#define RT_MMCSD_THREAD_PREORITY 22
#define RT_MMCSD_MAX_PARTITION 16
D
DengQilong 已提交
109
#define RT_USING_SPI
110 111 112

/* Using USB */

D
DengQilong 已提交
113 114 115 116 117

/* POSIX layer and C standard library */

#define RT_USING_LIBC
#define RT_USING_PTHREADS
Lawlieta's avatar
Lawlieta 已提交
118 119 120 121 122 123 124
#define RT_USING_POSIX

/* Network */

/* Socket abstraction layer */

#define RT_USING_SAL
D
DengQilong 已提交
125

Lawlieta's avatar
Lawlieta 已提交
126 127 128 129 130
/* protocol stack implement */

#define SAL_USING_LWIP
#define SAL_USING_POSIX
#define SAL_PROTO_FAMILIES_NUM 4
D
DengQilong 已提交
131 132 133

/* light weight TCP/IP stack */

B
Bernard Xiong 已提交
134
#define RT_USING_LWIP
T
tanek liang 已提交
135
#define RT_USING_LWIP202
B
Bernard Xiong 已提交
136 137
#define RT_LWIP_ICMP
#define RT_LWIP_DNS
D
DengQilong 已提交
138 139 140 141 142 143 144 145
#define RT_LWIP_DHCP
#define IP_SOF_BROADCAST 1
#define IP_SOF_BROADCAST_RECV 1

/* Static IPv4 Address */

#define RT_LWIP_IPADDR "192.168.1.30"
#define RT_LWIP_GWADDR "192.168.1.1"
B
bernard 已提交
146
#define RT_LWIP_MSKADDR "255.255.255.0"
D
DengQilong 已提交
147 148
#define RT_LWIP_UDP
#define RT_LWIP_TCP
149
#define RT_MEMP_NUM_NETCONN 8
D
DengQilong 已提交
150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167
#define RT_LWIP_PBUF_NUM 16
#define RT_LWIP_RAW_PCB_NUM 4
#define RT_LWIP_UDP_PCB_NUM 4
#define RT_LWIP_TCP_PCB_NUM 4
#define RT_LWIP_TCP_SEG_NUM 40
#define RT_LWIP_TCP_SND_BUF 8196
#define RT_LWIP_TCP_WND 8196
#define RT_LWIP_TCPTHREAD_PRIORITY 10
#define RT_LWIP_TCPTHREAD_MBOX_SIZE 8
#define RT_LWIP_TCPTHREAD_STACKSIZE 1024
#define RT_LWIP_ETHTHREAD_PRIORITY 12
#define RT_LWIP_ETHTHREAD_STACKSIZE 1024
#define RT_LWIP_ETHTHREAD_MBOX_SIZE 8
#define LWIP_NETIF_STATUS_CALLBACK 1
#define SO_REUSE 1
#define LWIP_SO_RCVTIMEO 1
#define LWIP_SO_SNDTIMEO 1
#define LWIP_SO_RCVBUF 1
168
#define LWIP_NETIF_LOOPBACK 0
D
DengQilong 已提交
169 170 171 172 173 174 175

/* Modbus master and slave stack */


/* VBUS(Virtual Software BUS) */


176 177 178 179 180 181
/* Utilities */


/* ARM CMSIS */


D
DengQilong 已提交
182 183 184 185
/* RT-Thread online packages */

/* IoT - internet of things */

186 187 188 189 190 191 192 193

/* Wi-Fi */

/* Marvell WiFi */


/* Wiced WiFi */

D
DengQilong 已提交
194 195 196

/* security packages */

197

D
DengQilong 已提交
198 199 200 201 202
/* language packages */


/* multimedia packages */

203

D
DengQilong 已提交
204 205
/* tools packages */

Lawlieta's avatar
Lawlieta 已提交
206 207 208 209 210 211

/* system packages */


/* peripheral libraries and drivers */

D
DengQilong 已提交
212 213 214

/* miscellaneous packages */

Lawlieta's avatar
Lawlieta 已提交
215 216 217

/* sample package */

218 219 220 221

/* example package: hello */

#define SOC_LPC54608
D
DengQilong 已提交
222
#define RT_USING_UART0
D
DengQilong 已提交
223 224
#define BSP_DRV_SDCARD
#define BSP_DRV_SDRAM
B
Bernard Xiong 已提交
225 226

#endif