rtconfig.h 3.7 KB
Newer Older
whj123999's avatar
whj123999 已提交
1 2
#ifndef RT_CONFIG_H__
#define RT_CONFIG_H__
M
Ming, Bai 已提交
3

whj123999's avatar
whj123999 已提交
4 5
/* Automatically generated file; DO NOT EDIT. */
/* RT-Thread Configuration */
M
Ming, Bai 已提交
6

whj123999's avatar
whj123999 已提交
7
/* RT-Thread Kernel */
M
Ming, Bai 已提交
8

whj123999's avatar
whj123999 已提交
9 10 11 12 13
#define RT_NAME_MAX 8
#define RT_ALIGN_SIZE 4
#define RT_THREAD_PRIORITY_32
#define RT_THREAD_PRIORITY_MAX 32
#define RT_TICK_PER_SECOND 1000
M
Ming, Bai 已提交
14 15
#define RT_USING_OVERFLOW_CHECK
#define RT_USING_HOOK
whj123999's avatar
whj123999 已提交
16 17 18
#define RT_IDEL_HOOK_LIST_SIZE 4
#define IDLE_THREAD_STACK_SIZE 256
#define RT_DEBUG
M
Ming, Bai 已提交
19

whj123999's avatar
whj123999 已提交
20
/* Inter-Thread communication */
M
Ming, Bai 已提交
21 22 23 24 25 26 27

#define RT_USING_SEMAPHORE
#define RT_USING_MUTEX
#define RT_USING_EVENT
#define RT_USING_MAILBOX
#define RT_USING_MESSAGEQUEUE

whj123999's avatar
whj123999 已提交
28
/* Memory Management */
M
Ming, Bai 已提交
29

whj123999's avatar
whj123999 已提交
30 31 32
#define RT_USING_MEMPOOL
#define RT_USING_MEMHEAP
#define RT_USING_SMALL_MEM
M
Ming, Bai 已提交
33 34
#define RT_USING_HEAP

whj123999's avatar
whj123999 已提交
35
/* Kernel Device Object */
M
Ming, Bai 已提交
36 37

#define RT_USING_DEVICE
whj123999's avatar
whj123999 已提交
38 39 40 41 42 43
#define RT_USING_CONSOLE
#define RT_CONSOLEBUF_SIZE 128
#define RT_CONSOLE_DEVICE_NAME "uart2"
#define ARCH_ARM
#define ARCH_ARM_CORTEX_M
#define ARCH_ARM_CORTEX_M3
pangweishende's avatar
pangweishende 已提交
44

whj123999's avatar
whj123999 已提交
45
/* RT-Thread Components */
M
Ming, Bai 已提交
46

whj123999's avatar
whj123999 已提交
47
#define RT_USING_COMPONENTS_INIT
M
Ming, Bai 已提交
48

whj123999's avatar
whj123999 已提交
49
/* C++ features */
50 51


whj123999's avatar
whj123999 已提交
52 53
/* Command shell */

M
Ming, Bai 已提交
54
#define RT_USING_FINSH
whj123999's avatar
whj123999 已提交
55 56 57
#define FINSH_THREAD_NAME "tshell"
#define FINSH_USING_HISTORY
#define FINSH_HISTORY_LINES 5
M
Ming, Bai 已提交
58 59
#define FINSH_USING_SYMTAB
#define FINSH_USING_DESCRIPTION
whj123999's avatar
whj123999 已提交
60 61 62 63 64 65 66 67
#define FINSH_THREAD_PRIORITY 20
#define FINSH_THREAD_STACK_SIZE 4096
#define FINSH_CMD_SIZE 80
#define FINSH_USING_MSH
#define FINSH_USING_MSH_DEFAULT
#define FINSH_ARG_MAX 10

/* Device virtual file system */
M
Ming, Bai 已提交
68 69

#define RT_USING_DFS
whj123999's avatar
whj123999 已提交
70 71 72 73
#define DFS_USING_WORKDIR
#define DFS_FILESYSTEMS_MAX 2
#define DFS_FILESYSTEM_TYPES_MAX 2
#define DFS_FD_MAX 16
M
Ming, Bai 已提交
74
#define RT_USING_DFS_ELMFAT
whj123999's avatar
whj123999 已提交
75 76 77 78 79 80 81 82 83 84

/* 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_3
#define RT_DFS_ELM_USE_LFN 3
#define RT_DFS_ELM_MAX_LFN 255
#define RT_DFS_ELM_DRIVES 2
#define RT_DFS_ELM_MAX_SECTOR_SIZE 512
M
Ming, Bai 已提交
85
#define RT_DFS_ELM_REENTRANT
whj123999's avatar
whj123999 已提交
86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108
#define RT_USING_DFS_DEVFS

/* Device Drivers */

#define RT_USING_DEVICE_IPC
#define RT_PIPE_BUFSZ 512
#define RT_USING_SERIAL
#define RT_USING_PIN

/* Using USB */


/* POSIX layer and C standard library */

#define RT_USING_LIBC

/* Network */

/* Socket abstraction layer */


/* light weight TCP/IP stack */

M
Ming, Bai 已提交
109
#define RT_USING_LWIP
whj123999's avatar
whj123999 已提交
110 111
#define RT_USING_LWIP202
#define RT_LWIP_IGMP
M
Ming, Bai 已提交
112 113
#define RT_LWIP_ICMP
#define RT_LWIP_DNS
whj123999's avatar
whj123999 已提交
114 115 116
#define RT_LWIP_DHCP
#define IP_SOF_BROADCAST 1
#define IP_SOF_BROADCAST_RECV 1
M
Ming, Bai 已提交
117

whj123999's avatar
whj123999 已提交
118
/* Static IPv4 Address */
M
Ming, Bai 已提交
119

120
#define RT_LWIP_IPADDR "192.168.1.30"
whj123999's avatar
whj123999 已提交
121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146
#define RT_LWIP_GWADDR "192.168.1.1"
#define RT_LWIP_MSKADDR "255.255.255.0"
#define RT_LWIP_UDP
#define RT_LWIP_TCP
#define RT_MEMP_NUM_NETCONN 8
#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
#define LWIP_NETIF_LOOPBACK 0

/* Modbus master and slave stack */
147 148


whj123999's avatar
whj123999 已提交
149
/* AT commands */
M
Ming, Bai 已提交
150 151


whj123999's avatar
whj123999 已提交
152
/* VBUS(Virtual Software BUS) */
M
Ming, Bai 已提交
153 154


whj123999's avatar
whj123999 已提交
155
/* Utilities */
M
Ming, Bai 已提交
156 157


whj123999's avatar
whj123999 已提交
158 159
/* ARM CMSIS */

M
Ming, Bai 已提交
160 161
#define RT_USING_RTT_CMSIS

whj123999's avatar
whj123999 已提交
162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206
/* RT-Thread online packages */

/* IoT - internet of things */


/* Wi-Fi */

/* Marvell WiFi */


/* Wiced WiFi */


/* IoT Cloud */


/* security packages */


/* language packages */


/* multimedia packages */


/* tools packages */


/* system packages */


/* peripheral libraries and drivers */


/* miscellaneous packages */


/* sample package */


/* example package: hello */

#define SOC_STM32F1
#define RT_USING_UART2

M
Ming, Bai 已提交
207
#endif