2012-01-31 20:22:49 +08:00
|
|
|
#ifndef __RTTHREAD_CFG_H__
|
|
|
|
#define __RTTHREAD_CFG_H__
|
|
|
|
|
|
|
|
// <RDTConfigurator URL="http://www.rt-thread.com/eclipse">
|
|
|
|
|
|
|
|
// <integer name="RT_NAME_MAX" description="Maximal size of kernel object name length" default="6" />
|
2021-03-17 02:26:35 +08:00
|
|
|
#define RT_NAME_MAX 6
|
2023-01-12 12:25:57 +08:00
|
|
|
// <integer name="RT_ALIGN_SIZE" description="Alignment size for CPU architecture data access" default="8" />
|
|
|
|
#define RT_ALIGN_SIZE 8
|
2012-09-24 16:26:44 +08:00
|
|
|
// <integer name="RT_THREAD_PRIORITY_MAX" description="Maximal level of thread priority" default="32">
|
2012-01-31 20:22:49 +08:00
|
|
|
// <item description="8">8</item>
|
|
|
|
// <item description="32">32</item>
|
|
|
|
// <item description="256">256</item>
|
|
|
|
// </integer>
|
2021-03-17 02:26:35 +08:00
|
|
|
#define RT_THREAD_PRIORITY_MAX 32
|
2012-01-31 20:22:49 +08:00
|
|
|
// <integer name="RT_TICK_PER_SECOND" description="OS tick per second" default="100" />
|
2021-03-17 02:26:35 +08:00
|
|
|
#define RT_TICK_PER_SECOND 100
|
2012-01-31 20:22:49 +08:00
|
|
|
// <section name="RT_DEBUG" description="Kernel Debug Configuration" default="true" >
|
|
|
|
#define RT_DEBUG
|
2019-03-06 17:07:15 +08:00
|
|
|
#define RT_DEBUG_COLOR
|
2012-01-31 20:22:49 +08:00
|
|
|
// <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" />
|
|
|
|
#define RT_USING_OVERFLOW_CHECK
|
|
|
|
// </section>
|
|
|
|
|
|
|
|
// <bool name="RT_USING_HOOK" description="Using hook functions" default="true" />
|
|
|
|
#define RT_USING_HOOK
|
|
|
|
// <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" />
|
2021-03-17 02:26:35 +08:00
|
|
|
#define RT_TIMER_THREAD_PRIO 4
|
2012-01-31 20:22:49 +08:00
|
|
|
// <integer name="RT_TIMER_THREAD_STACK_SIZE" description="The stack size of timer thread" default="512" />
|
2021-03-17 02:26:35 +08:00
|
|
|
#define RT_TIMER_THREAD_STACK_SIZE 512
|
2012-01-31 20:22:49 +08:00
|
|
|
// <integer name="RT_TIMER_TICK_PER_SECOND" description="The soft-timer tick per second" default="10" />
|
2021-03-17 02:26:35 +08:00
|
|
|
#define RT_TIMER_TICK_PER_SECOND 10
|
2012-01-31 20:22:49 +08:00
|
|
|
// </section>
|
|
|
|
|
|
|
|
// <section name="IPC" description="Inter-Thread communication" default="always" >
|
|
|
|
// <bool name="RT_USING_SEMAPHORE" description="Using semaphore in the system" default="true" />
|
|
|
|
#define RT_USING_SEMAPHORE
|
|
|
|
// <bool name="RT_USING_MUTEX" description="Using mutex in the system" default="true" />
|
|
|
|
#define RT_USING_MUTEX
|
|
|
|
// <bool name="RT_USING_EVENT" description="Using event group in the system" default="true" />
|
|
|
|
#define RT_USING_EVENT
|
|
|
|
// <bool name="RT_USING_MAILBOX" description="Using mailbox in the system" default="true" />
|
|
|
|
#define RT_USING_MAILBOX
|
|
|
|
// <bool name="RT_USING_MESSAGEQUEUE" description="Using message queue in the system" default="true" />
|
|
|
|
#define RT_USING_MESSAGEQUEUE
|
|
|
|
// </section>
|
|
|
|
|
|
|
|
// <section name="MM" description="Memory Management" default="always" >
|
|
|
|
// <bool name="RT_USING_MEMPOOL" description="Using Memory Pool Management in the system" default="true" />
|
|
|
|
#define RT_USING_MEMPOOL
|
2012-04-15 16:26:15 +08:00
|
|
|
// <bool name="RT_USING_MEMHEAP" description="Using Memory Heap Object in the system" default="true" />
|
|
|
|
#define RT_USING_MEMHEAP
|
2012-01-31 20:22:49 +08:00
|
|
|
// <bool name="RT_USING_HEAP" description="Using Dynamic Heap Management in the system" default="true" />
|
|
|
|
#define RT_USING_HEAP
|
|
|
|
// <bool name="RT_USING_SMALL_MEM" description="Optimizing for small memory" default="false" />
|
|
|
|
#define RT_USING_SMALL_MEM
|
|
|
|
// <bool name="RT_USING_SLAB" description="Using SLAB memory management for large memory" default="false" />
|
|
|
|
// #define RT_USING_SLAB
|
|
|
|
// </section>
|
|
|
|
|
|
|
|
// <section name="RT_USING_DEVICE" description="Using Device Driver Framework" default="true" >
|
|
|
|
#define RT_USING_DEVICE
|
2022-02-23 23:56:43 +08:00
|
|
|
#define RT_USING_DEVICE_IPC
|
2012-01-31 20:22:49 +08:00
|
|
|
// <bool name="RT_USING_UART0" description="Using UART0" default="true" />
|
|
|
|
#define RT_USING_UART0
|
|
|
|
// <integer name="RT_UART_RX_BUFFER_SIZE" description="The buffer size for UART reception" default="64" />
|
2021-03-17 02:26:35 +08:00
|
|
|
#define RT_UART_RX_BUFFER_SIZE 64
|
2012-01-31 20:22:49 +08:00
|
|
|
// </section>
|
|
|
|
|
|
|
|
// <section name="RT_USING_CONSOLE" description="Using console" default="true" >
|
|
|
|
#define RT_USING_CONSOLE
|
|
|
|
// <integer name="RT_CONSOLEBUF_SIZE" description="The buffer size for console output" default="128" />
|
2021-03-17 02:26:35 +08:00
|
|
|
#define RT_CONSOLEBUF_SIZE 128
|
2012-04-15 15:03:10 +08:00
|
|
|
// <string name="RT_CONSOLE_DEVICE_NAME" description="The device name for console" default="uart" />
|
2021-03-17 02:26:35 +08:00
|
|
|
#define RT_CONSOLE_DEVICE_NAME "uart0"
|
2012-01-31 20:22:49 +08:00
|
|
|
// </section>
|
|
|
|
|
2012-04-15 15:03:10 +08:00
|
|
|
// <bool name="RT_USING_COMPONENTS_INIT" description="Using RT-Thread components initialization" default="true" />
|
2014-07-19 06:51:43 +08:00
|
|
|
// #define RT_USING_COMPONENTS_INIT
|
2012-01-31 20:22:49 +08:00
|
|
|
// <section name="RT_USING_FINSH" description="Using finsh as shell, which is a C-Express shell" default="true" >
|
|
|
|
#define RT_USING_FINSH
|
|
|
|
// <bool name="FINSH_USING_SYMTAB" description="Using symbol table in finsh shell" default="true" />
|
|
|
|
#define FINSH_USING_SYMTAB
|
|
|
|
// <bool name="FINSH_USING_DESCRIPTION" description="Keeping description in symbol table" default="true" />
|
|
|
|
#define FINSH_USING_DESCRIPTION
|
|
|
|
// <integer name="FINSH_THREAD_STACK_SIZE" description="The stack size for finsh thread" default="4096" />
|
2021-03-17 02:26:35 +08:00
|
|
|
#define FINSH_THREAD_STACK_SIZE 4096
|
2012-01-31 20:22:49 +08:00
|
|
|
// </section>
|
|
|
|
|
|
|
|
// <section name="LIBC" description="C Runtime library setting" default="always" >
|
2014-11-01 09:15:07 +08:00
|
|
|
// <bool name="RT_USING_LIBC" description="Using C library" default="true" />
|
|
|
|
// #define RT_USING_LIBC
|
2012-01-31 20:22:49 +08:00
|
|
|
// <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" />
|
2016-01-06 05:05:08 +08:00
|
|
|
#define DFS_USING_WORKDIR
|
2012-01-31 20:22:49 +08:00
|
|
|
// <integer name="DFS_FILESYSTEMS_MAX" description="The maximal number of mounted file system" default="4" />
|
2021-03-17 02:26:35 +08:00
|
|
|
#define DFS_FILESYSTEMS_MAX 2
|
2012-01-31 20:22:49 +08:00
|
|
|
// <integer name="DFS_FD_MAX" description="The maximal number of opened files" default="4" />
|
2021-03-17 02:26:35 +08:00
|
|
|
#define DFS_FD_MAX 4
|
2012-01-31 20:22:49 +08:00
|
|
|
// <bool name="RT_USING_DFS_ELMFAT" description="Using ELM FatFs" default="true" />
|
|
|
|
#define RT_USING_DFS_ELMFAT
|
|
|
|
// <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>
|
2021-03-17 02:26:35 +08:00
|
|
|
#define RT_DFS_ELM_USE_LFN 1
|
2016-01-04 09:03:08 +08:00
|
|
|
// <integer name="RT_DFS_ELM_CODE_PAGE" description="specifies the OEM code page to be used on the target system" default="936">
|
|
|
|
// <item description="Japanese Shift-JIS (DBCS, OEM, Windows)">932</item>
|
|
|
|
// <item description="Simplified Chinese GBK (DBCS, OEM, Windows)">936</item>
|
|
|
|
// <item description="Korean (DBCS, OEM, Windows)">949</item>
|
|
|
|
// <item description="Traditional Chinese Big5 (DBCS, OEM, Windows)">950</item>
|
|
|
|
// <item description="Central Europe (Windows)">1250</item>
|
|
|
|
// <item description="Cyrillic (Windows)">1251</item>
|
|
|
|
// <item description="Latin 1 (Windows)">1252</item>
|
|
|
|
// <item description="Greek (Windows)">1253</item>
|
|
|
|
// <item description="Turkish (Windows)">1254</item>
|
|
|
|
// <item description="Hebrew (Windows)">1255</item>
|
|
|
|
// <item description="Arabic (Windows)">1256</item>
|
|
|
|
// <item description="Baltic (Windows)">1257</item>
|
|
|
|
// <item description="Vietnam (OEM, Windows)">1258</item>
|
|
|
|
// <item description="U.S. (OEM)">437</item>
|
|
|
|
// <item description="Arabic (OEM)">720</item>
|
|
|
|
// <item description="Greek (OEM)">737</item>
|
|
|
|
// <item description="Baltic (OEM)">775</item>
|
|
|
|
// <item description="Multilingual Latin 1 (OEM)">850</item>
|
|
|
|
// <item description="Multilingual Latin 1 + Euro (OEM)">858</item>
|
|
|
|
// <item description="Latin 2 (OEM)">852</item>
|
|
|
|
// <item description="Cyrillic (OEM)">855</item>
|
|
|
|
// <item description="Russian (OEM)">866</item>
|
|
|
|
// <item description="Turkish (OEM)">857</item>
|
|
|
|
// <item description="Hebrew (OEM)">862</item>
|
|
|
|
// <item description="Thai (OEM, Windows)">874</item>
|
|
|
|
// <item description="ASCII only (Valid for non LFN cfg.)">1</item>
|
|
|
|
// </integer>
|
2016-01-06 05:05:08 +08:00
|
|
|
#define RT_DFS_ELM_CODE_PAGE 437
|
2017-04-09 19:23:28 +08:00
|
|
|
// <integer name="RT_DFS_ELM_MAX_LFN" description="Maximal size of file name length" default="255" />
|
2021-03-17 02:26:35 +08:00
|
|
|
#define RT_DFS_ELM_MAX_LFN 64
|
2012-01-31 20:22:49 +08:00
|
|
|
// <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:/" />
|
2021-03-17 02:26:35 +08:00
|
|
|
#define RT_NFS_HOST_EXPORT "192.168.1.5:/"
|
2012-01-31 20:22:49 +08:00
|
|
|
// </section>
|
|
|
|
|
|
|
|
// <section name="RT_USING_LWIP" description="lwip, a lightweight TCP/IP protocol stack" default="true" >
|
2012-04-15 15:03:10 +08:00
|
|
|
#define RT_USING_LWIP
|
2021-06-28 16:29:26 +08:00
|
|
|
#define RT_USING_LWIP203
|
2012-01-31 20:22:49 +08:00
|
|
|
// <bool name="RT_LWIP_ICMP" description="Enable ICMP protocol" default="true" />
|
|
|
|
#define RT_LWIP_ICMP
|
|
|
|
// <bool name="RT_LWIP_IGMP" description="Enable IGMP protocol" default="false" />
|
2012-02-18 00:24:20 +08:00
|
|
|
// #define RT_LWIP_IGMP
|
2012-01-31 20:22:49 +08:00
|
|
|
// <bool name="RT_LWIP_UDP" description="Enable UDP protocol" default="true" />
|
|
|
|
#define RT_LWIP_UDP
|
|
|
|
// <bool name="RT_LWIP_TCP" description="Enable TCP protocol" default="true" />
|
|
|
|
#define RT_LWIP_TCP
|
|
|
|
// <bool name="RT_LWIP_DNS" description="Enable DNS protocol" default="true" />
|
|
|
|
#define RT_LWIP_DNS
|
2012-04-15 16:26:15 +08:00
|
|
|
// <integer name="RT_LWIP_PBUF_NUM" description="Maximal number of buffers in the pbuf pool" default="4" />
|
2021-03-17 02:26:35 +08:00
|
|
|
#define RT_LWIP_PBUF_NUM 4
|
2012-01-31 20:22:49 +08:00
|
|
|
// <integer name="RT_LWIP_TCP_PCB_NUM" description="Maximal number of simultaneously active TCP connections" default="5" />
|
2021-03-17 02:26:35 +08:00
|
|
|
#define RT_LWIP_TCP_PCB_NUM 3
|
2012-01-31 20:22:49 +08:00
|
|
|
// <integer name="RT_LWIP_TCP_SND_BUF" description="TCP sender buffer size" default="8192" />
|
2021-03-17 02:26:35 +08:00
|
|
|
#define RT_LWIP_TCP_SND_BUF (2 * TCP_MSS)
|
2012-01-31 20:22:49 +08:00
|
|
|
// <integer name="RT_LWIP_TCP_WND" description="TCP receive window" default="8192" />
|
2021-03-17 02:26:35 +08:00
|
|
|
#define RT_LWIP_TCP_WND 2048
|
2012-01-31 20:22:49 +08:00
|
|
|
// <bool name="RT_LWIP_SNMP" description="Enable SNMP protocol" default="false" />
|
|
|
|
// #define RT_LWIP_SNMP
|
|
|
|
// <bool name="RT_LWIP_DHCP" description="Enable DHCP client to get IP address" default="false" />
|
|
|
|
// #define RT_LWIP_DHCP
|
|
|
|
// <integer name="RT_LWIP_TCPTHREAD_PRIORITY" description="the thread priority of TCP thread" default="128" />
|
2021-03-17 02:26:35 +08:00
|
|
|
#define RT_LWIP_TCPTHREAD_PRIORITY 12
|
2012-01-31 20:22:49 +08:00
|
|
|
// <integer name="RT_LWIP_TCPTHREAD_MBOX_SIZE" description="the mail box size of TCP thread to wait for" default="32" />
|
2021-03-17 02:26:35 +08:00
|
|
|
#define RT_LWIP_TCPTHREAD_MBOX_SIZE 8
|
2012-01-31 20:22:49 +08:00
|
|
|
// <integer name="RT_LWIP_TCPTHREAD_STACKSIZE" description="the thread stack size of TCP thread" default="4096" />
|
2021-03-17 02:26:35 +08:00
|
|
|
#define RT_LWIP_TCPTHREAD_STACKSIZE 4096
|
2012-01-31 20:22:49 +08:00
|
|
|
// <integer name="RT_LWIP_ETHTHREAD_PRIORITY" description="the thread priority of ethnetif thread" default="144" />
|
2021-03-17 02:26:35 +08:00
|
|
|
#define RT_LWIP_ETHTHREAD_PRIORITY 14
|
2012-01-31 20:22:49 +08:00
|
|
|
// <integer name="RT_LWIP_ETHTHREAD_MBOX_SIZE" description="the mail box size of ethnetif thread to wait for" default="8" />
|
2021-03-17 02:26:35 +08:00
|
|
|
#define RT_LWIP_ETHTHREAD_MBOX_SIZE 8
|
2012-01-31 20:22:49 +08:00
|
|
|
// <integer name="RT_LWIP_ETHTHREAD_STACKSIZE" description="the stack size of ethnetif thread" default="512" />
|
2021-03-17 02:26:35 +08:00
|
|
|
#define RT_LWIP_ETHTHREAD_STACKSIZE 512
|
2012-01-31 20:22:49 +08:00
|
|
|
// <ipaddr name="RT_LWIP_IPADDR" description="IP address of device" default="192.168.1.30" />
|
2017-10-27 10:05:31 +08:00
|
|
|
#define RT_LWIP_IPADDR "192.168.1.30"
|
2012-01-31 20:22:49 +08:00
|
|
|
// <ipaddr name="RT_LWIP_GWADDR" description="Gateway address of device" default="192.168.1.1" />
|
2017-10-27 10:05:31 +08:00
|
|
|
#define RT_LWIP_GWADDR "192.168.1.1"
|
2012-01-31 20:22:49 +08:00
|
|
|
// <ipaddr name="RT_LWIP_MSKADDR" description="Mask address of device" default="255.255.255.0" />
|
2017-10-27 10:05:31 +08:00
|
|
|
#define RT_LWIP_MSKADDR "255.255.255.0"
|
2012-01-31 20:22:49 +08:00
|
|
|
// </section>
|
|
|
|
|
2012-06-01 15:31:15 +08:00
|
|
|
// <bool name="RT_USING_CMSIS_OS" description="Using CMSIS OS API" default="true" />
|
|
|
|
// #define RT_USING_CMSIS_OS
|
|
|
|
// <bool name="RT_USING_BSP_CMSIS" description="Using CMSIS in BSP" default="true" />
|
2012-09-20 15:38:46 +08:00
|
|
|
// #define RT_USING_BSP_CMSIS
|
2012-06-01 15:31:15 +08:00
|
|
|
|
2012-01-31 20:22:49 +08:00
|
|
|
// </RDTConfigurator>
|
|
|
|
|
|
|
|
#endif
|