rtconfig.h 3.0 KB
Newer Older
1 2
#ifndef RT_CONFIG_H__
#define RT_CONFIG_H__
M
Ming, Bai 已提交
3

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

7
/* RT-Thread Kernel */
M
Ming, Bai 已提交
8

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 100
M
Ming, Bai 已提交
14 15
#define RT_USING_OVERFLOW_CHECK
#define RT_USING_HOOK
Lawlieta's avatar
Lawlieta 已提交
16
#define RT_IDEL_HOOK_LIST_SIZE 4
17
#define IDLE_THREAD_STACK_SIZE 1024
Lawlieta's avatar
Lawlieta 已提交
18
#define RT_DEBUG
M
Ming, Bai 已提交
19

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

28
/* Memory Management */
M
Ming, Bai 已提交
29

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

35
/* Kernel Device Object */
M
Ming, Bai 已提交
36 37

#define RT_USING_DEVICE
38 39
#define RT_USING_CONSOLE
#define RT_CONSOLEBUF_SIZE 128
40
#define RT_CONSOLE_DEVICE_NAME "uart1"
41 42 43
#define ARCH_ARM
#define ARCH_ARM_CORTEX_M
#define ARCH_ARM_CORTEX_M4
44

45
/* RT-Thread Components */
46

Z
zylx 已提交
47
#define RT_USING_COMPONENTS_INIT
48 49 50
#define RT_USING_USER_MAIN
#define RT_MAIN_THREAD_STACK_SIZE 2048
#define RT_MAIN_THREAD_PRIORITY 10
M
Ming, Bai 已提交
51

52
/* C++ features */
H
heyuanjie87 已提交
53

54 55

/* Command shell */
M
Ming, Bai 已提交
56 57

#define RT_USING_FINSH
58 59 60
#define FINSH_THREAD_NAME "tshell"
#define FINSH_USING_HISTORY
#define FINSH_HISTORY_LINES 5
M
Ming, Bai 已提交
61 62
#define FINSH_USING_SYMTAB
#define FINSH_USING_DESCRIPTION
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
Lawlieta's avatar
Lawlieta 已提交
68
#define FINSH_ARG_MAX 10
69 70 71 72 73 74 75

/* Device virtual file system */

#define RT_USING_DFS
#define DFS_USING_WORKDIR
#define DFS_FILESYSTEMS_MAX 2
#define DFS_FILESYSTEM_TYPES_MAX 2
Lawlieta's avatar
Lawlieta 已提交
76
#define DFS_FD_MAX 16
77 78 79 80 81
#define RT_USING_DFS_ELMFAT

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

#define RT_DFS_ELM_CODE_PAGE 437
M
Ming, Bai 已提交
82
#define RT_DFS_ELM_WORD_ACCESS
83 84 85 86 87
#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
M
Ming, Bai 已提交
88
#define RT_DFS_ELM_REENTRANT
89 90 91 92 93
#define RT_USING_DFS_DEVFS

/* Device Drivers */

#define RT_USING_DEVICE_IPC
Lawlieta's avatar
Lawlieta 已提交
94
#define RT_PIPE_BUFSZ 512
95 96 97 98 99 100 101 102 103 104
#define RT_USING_SERIAL
#define RT_USING_PIN

/* Using USB */


/* POSIX layer and C standard library */

#define RT_USING_LIBC
#define RT_USING_PTHREADS
Lawlieta's avatar
Lawlieta 已提交
105 106 107 108 109 110
#define RT_USING_POSIX

/* Network */

/* Socket abstraction layer */

111 112 113 114 115 116 117

/* light weight TCP/IP stack */


/* Modbus master and slave stack */


118 119 120
/* AT commands */


121 122 123 124 125 126 127 128 129 130 131 132 133 134 135
/* VBUS(Virtual Software BUS) */


/* Utilities */


/* ARM CMSIS */


/* RT-Thread online packages */

/* IoT - internet of things */


/* Wi-Fi */
M
Ming, Bai 已提交
136

137 138 139 140 141 142
/* Marvell WiFi */


/* Wiced WiFi */


143 144 145
/* IoT Cloud */


146 147 148 149 150 151 152 153 154 155 156 157
/* security packages */


/* language packages */


/* multimedia packages */


/* tools packages */


Lawlieta's avatar
Lawlieta 已提交
158 159 160 161 162 163
/* system packages */


/* peripheral libraries and drivers */


164 165 166
/* miscellaneous packages */


Lawlieta's avatar
Lawlieta 已提交
167 168
/* sample package */

169 170
/* samples: kernel and components samples */

Lawlieta's avatar
Lawlieta 已提交
171

172 173 174 175 176 177
/* example package: hello */

#define SOC_STM32F4
#define RT_USING_UART1
#define RT_USING_UART2
#define RT_USING_UART3
178

M
Ming, Bai 已提交
179
#endif