update rtconfig.h file with RT-Thread Configurator XML Tag.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1935 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
parent
df84097076
commit
4105ba0b23
|
@ -1,153 +1,179 @@
|
||||||
/* RT-Thread config file */
|
#ifndef __RTTHREAD_CFG_H__
|
||||||
#ifndef __RTTHREAD_CFG_H__
|
#define __RTTHREAD_CFG_H__
|
||||||
#define __RTTHREAD_CFG_H__
|
|
||||||
|
// <RDTConfigurator URL="http://www.rt-thread.com/eclipse">
|
||||||
/* RT_NAME_MAX*/
|
|
||||||
#define RT_NAME_MAX 8
|
// <integer name="RT_NAME_MAX" description="Maximal size of kernel object name length" default="6" />
|
||||||
|
#define RT_NAME_MAX 6
|
||||||
/* RT_ALIGN_SIZE*/
|
// <integer name="RT_ALIGN_SIZE" description="Alignment size for CPU architecture data access" default="4" />
|
||||||
#define RT_ALIGN_SIZE 4
|
#define RT_ALIGN_SIZE 4
|
||||||
|
// <integer name="RT_THREAD_PRIORITY_MAX" description="Maximal level of thread priority" default="2">
|
||||||
/* PRIORITY_MAX */
|
// <item description="8">8</item>
|
||||||
#define RT_THREAD_PRIORITY_MAX 32
|
// <item description="32">32</item>
|
||||||
|
// <item description="256">256</item>
|
||||||
/* Tick per Second */
|
// </integer>
|
||||||
#define RT_TICK_PER_SECOND 100
|
#define RT_THREAD_PRIORITY_MAX 32
|
||||||
|
// <integer name="RT_TICK_PER_SECOND" description="OS tick per second" default="100" />
|
||||||
/* SECTION: RT_DEBUG */
|
#define RT_TICK_PER_SECOND 100
|
||||||
/* Thread Debug */
|
// <section name="RT_DEBUG" description="Kernel Debug Configuration" default="true" >
|
||||||
#define RT_DEBUG
|
#define RT_DEBUG
|
||||||
/* #define RT_THREAD_DEBUG */
|
// <bool name="RT_THREAD_DEBUG" description="Thread debug enable" default="false" />
|
||||||
|
// #define RT_THREAD_DEBUG
|
||||||
#define RT_USING_OVERFLOW_CHECK
|
// <bool name="RT_USING_OVERFLOW_CHECK" description="Thread stack over flow detect" default="true" />
|
||||||
|
#define RT_USING_OVERFLOW_CHECK
|
||||||
/* Using Hook */
|
// </section>
|
||||||
#define RT_USING_HOOK
|
|
||||||
|
// <bool name="RT_USING_HOOK" description="Using hook functions" default="true" />
|
||||||
/* Using Software Timer */
|
#define RT_USING_HOOK
|
||||||
/* #define RT_USING_TIMER_SOFT */
|
// <section name="RT_USING_TIMER_SOFT" description="Using software timer which will start a thread to handle soft-timer" default="true" >
|
||||||
#define RT_TIMER_THREAD_PRIO 4
|
// #define RT_USING_TIMER_SOFT
|
||||||
#define RT_TIMER_THREAD_STACK_SIZE 512
|
// <integer name="RT_TIMER_THREAD_PRIO" description="The priority level of timer thread" default="4" />
|
||||||
#define RT_TIMER_TICK_PER_SECOND 10
|
#define RT_TIMER_THREAD_PRIO 4
|
||||||
|
// <integer name="RT_TIMER_THREAD_STACK_SIZE" description="The stack size of timer thread" default="512" />
|
||||||
/* SECTION: IPC */
|
#define RT_TIMER_THREAD_STACK_SIZE 512
|
||||||
/* Using Semaphore */
|
// <integer name="RT_TIMER_TICK_PER_SECOND" description="The soft-timer tick per second" default="10" />
|
||||||
#define RT_USING_SEMAPHORE
|
#define RT_TIMER_TICK_PER_SECOND 10
|
||||||
|
// </section>
|
||||||
/* Using Mutex */
|
|
||||||
#define RT_USING_MUTEX
|
// <section name="IPC" description="Inter-Thread communication" default="always" >
|
||||||
|
// <bool name="RT_USING_SEMAPHORE" description="Using semaphore in the system" default="true" />
|
||||||
/* Using Event */
|
#define RT_USING_SEMAPHORE
|
||||||
#define RT_USING_EVENT
|
// <bool name="RT_USING_MUTEX" description="Using mutex in the system" default="true" />
|
||||||
|
#define RT_USING_MUTEX
|
||||||
/* Using MailBox */
|
// <bool name="RT_USING_EVENT" description="Using event group in the system" default="true" />
|
||||||
#define RT_USING_MAILBOX
|
#define RT_USING_EVENT
|
||||||
|
// <bool name="RT_USING_MAILBOX" description="Using mailbox in the system" default="true" />
|
||||||
/* Using Message Queue */
|
#define RT_USING_MAILBOX
|
||||||
#define RT_USING_MESSAGEQUEUE
|
// <bool name="RT_USING_MESSAGEQUEUE" description="Using message queue in the system" default="true" />
|
||||||
|
#define RT_USING_MESSAGEQUEUE
|
||||||
/* SECTION: Memory Management */
|
// </section>
|
||||||
/* Using Memory Pool Management*/
|
|
||||||
#define RT_USING_MEMPOOL
|
// <section name="MM" description="Memory Management" default="always" >
|
||||||
|
// <bool name="RT_USING_MEMPOOL" description="Using Memory Pool Management in the system" default="true" />
|
||||||
/* Using Dynamic Heap Management */
|
#define RT_USING_MEMPOOL
|
||||||
#define RT_USING_HEAP
|
// <bool name="RT_USING_HEAP" description="Using Dynamic Heap Management in the system" default="true" />
|
||||||
|
#define RT_USING_HEAP
|
||||||
/* Using Small MM */
|
// <bool name="RT_USING_SMALL_MEM" description="Optimizing for small memory" default="false" />
|
||||||
#define RT_USING_SMALL_MEM
|
#define RT_USING_SMALL_MEM
|
||||||
|
// <bool name="RT_USING_SLAB" description="Using SLAB memory management for large memory" default="false" />
|
||||||
/* SECTION: Device System */
|
// #define RT_USING_SLAB
|
||||||
/* Using Device System */
|
// </section>
|
||||||
#define RT_USING_DEVICE
|
|
||||||
/* RT_USING_UART */
|
// <section name="RT_USING_DEVICE" description="Using Device Driver Framework" default="true" >
|
||||||
#define RT_USING_UART0
|
#define RT_USING_DEVICE
|
||||||
#define RT_UART_RX_BUFFER_SIZE 64
|
// <bool name="RT_USING_UART0" description="Using UART0" default="true" />
|
||||||
|
#define RT_USING_UART0
|
||||||
/* SECTION: Console options */
|
// <integer name="RT_UART_RX_BUFFER_SIZE" description="The buffer size for UART reception" default="64" />
|
||||||
#define RT_USING_CONSOLE
|
#define RT_UART_RX_BUFFER_SIZE 64
|
||||||
/* the buffer size of console */
|
// </section>
|
||||||
#define RT_CONSOLEBUF_SIZE 128
|
|
||||||
|
// <section name="RT_USING_CONSOLE" description="Using console" default="true" >
|
||||||
/* SECTION: finsh, a C-Express shell */
|
#define RT_USING_CONSOLE
|
||||||
/* Using FinSH as Shell*/
|
// <integer name="RT_CONSOLEBUF_SIZE" description="The buffer size for console output" default="128" />
|
||||||
#define RT_USING_FINSH
|
#define RT_CONSOLEBUF_SIZE 128
|
||||||
/* Using symbol table */
|
// </section>
|
||||||
#define FINSH_USING_SYMTAB
|
|
||||||
#define FINSH_USING_DESCRIPTION
|
// <section name="RT_USING_FINSH" description="Using finsh as shell, which is a C-Express shell" default="true" >
|
||||||
|
#define RT_USING_FINSH
|
||||||
/* SECTION: device filesystem support */
|
// <bool name="FINSH_USING_SYMTAB" description="Using symbol table in finsh shell" default="true" />
|
||||||
/* #define RT_USING_DFS */
|
#define FINSH_USING_SYMTAB
|
||||||
#define RT_USING_DFS_ELMFAT
|
// <bool name="FINSH_USING_DESCRIPTION" description="Keeping description in symbol table" default="true" />
|
||||||
|
#define FINSH_USING_DESCRIPTION
|
||||||
/* the max number of mounted filesystem */
|
// <integer name="FINSH_THREAD_STACK_SIZE" description="The stack size for finsh thread" default="4096" />
|
||||||
#define DFS_FILESYSTEMS_MAX 2
|
#define FINSH_THREAD_STACK_SIZE 4096
|
||||||
/* the max number of opened files */
|
// </section>
|
||||||
#define DFS_FD_MAX 4
|
|
||||||
/* the max number of cached sector */
|
// <section name="LIBC" description="C Runtime library setting" default="always" >
|
||||||
#define DFS_CACHE_MAX_NUM 4
|
// <bool name="RT_USING_NEWLIB" description="Using newlib library, only available under GNU GCC" default="true" />
|
||||||
|
// #define RT_USING_NEWLIB
|
||||||
/* SECTION: lwip, a lighwight TCP/IP protocol stack */
|
// <bool name="RT_USING_PTHREADS" description="Using POSIX threads library" default="true" />
|
||||||
#define RT_USING_LWIP
|
// #define RT_USING_PTHREADS
|
||||||
#define RT_LWIP_USING_RT_MEM
|
// </section>
|
||||||
|
|
||||||
/* Enable ICMP protocol*/
|
// <section name="RT_USING_DFS" description="Device file system" default="true" >
|
||||||
#define RT_LWIP_ICMP
|
// #define RT_USING_DFS
|
||||||
/* Enable UDP protocol*/
|
// <bool name="DFS_USING_WORKDIR" description="Using working directory" default="true" />
|
||||||
#define RT_LWIP_UDP
|
// #define DFS_USING_WORKDIR
|
||||||
/* Enable TCP protocol*/
|
// <integer name="DFS_FILESYSTEMS_MAX" description="The maximal number of mounted file system" default="4" />
|
||||||
#define RT_LWIP_TCP
|
#define DFS_FILESYSTEMS_MAX 2
|
||||||
/* Enable DNS */
|
// <integer name="DFS_FD_MAX" description="The maximal number of opened files" default="4" />
|
||||||
#define RT_LWIP_DNS
|
#define DFS_FD_MAX 4
|
||||||
|
// <bool name="RT_USING_DFS_ELMFAT" description="Using ELM FatFs" default="true" />
|
||||||
/* the number of simulatenously active TCP connections*/
|
#define RT_USING_DFS_ELMFAT
|
||||||
#define RT_LWIP_TCP_PCB_NUM 5
|
// <integer name="RT_DFS_ELM_USE_LFN" description="Support long file name" default="0">
|
||||||
|
// <item description="LFN1">1</item>
|
||||||
/* ip address of target*/
|
// <item description="LFN1">2</item>
|
||||||
#define RT_LWIP_IPADDR0 192
|
// </integer>
|
||||||
#define RT_LWIP_IPADDR1 168
|
#define RT_DFS_ELM_USE_LFN 1
|
||||||
#define RT_LWIP_IPADDR2 1
|
// <integer name="RT_DFS_ELM_MAX_LFN" description="Maximal size of file name length" default="256" />
|
||||||
#define RT_LWIP_IPADDR3 30
|
#define RT_DFS_ELM_MAX_LFN 256
|
||||||
|
// <bool name="RT_USING_DFS_YAFFS2" description="Using YAFFS2" default="false" />
|
||||||
/* gateway address of target*/
|
// #define RT_USING_DFS_YAFFS2
|
||||||
#define RT_LWIP_GWADDR0 192
|
// <bool name="RT_USING_DFS_UFFS" description="Using UFFS" default="false" />
|
||||||
#define RT_LWIP_GWADDR1 168
|
// #define RT_USING_DFS_UFFS
|
||||||
#define RT_LWIP_GWADDR2 1
|
// <bool name="RT_USING_DFS_DEVFS" description="Using devfs for device objects" default="true" />
|
||||||
#define RT_LWIP_GWADDR3 1
|
// #define RT_USING_DFS_DEVFS
|
||||||
|
// <bool name="RT_USING_DFS_NFS" description="Using NFS v3 client file system" default="false" />
|
||||||
/* mask address of target*/
|
// #define RT_USING_DFS_NFS
|
||||||
#define RT_LWIP_MSKADDR0 255
|
// <string name="RT_NFS_HOST_EXPORT" description="NFSv3 host export" default="192.168.1.5:/" />
|
||||||
#define RT_LWIP_MSKADDR1 255
|
#define RT_NFS_HOST_EXPORT "192.168.1.5:/"
|
||||||
#define RT_LWIP_MSKADDR2 255
|
// </section>
|
||||||
#define RT_LWIP_MSKADDR3 0
|
|
||||||
|
// <section name="RT_USING_LWIP" description="lwip, a lightweight TCP/IP protocol stack" default="true" >
|
||||||
/* tcp thread options */
|
#define RT_USING_LWIP
|
||||||
#define RT_LWIP_TCPTHREAD_PRIORITY 12
|
// <bool name="RT_LWIP_USING_RT_MEM" description="Using RT-Thread memory management for LwIP" default="true" />
|
||||||
#define RT_LWIP_TCPTHREAD_MBOX_SIZE 4
|
#define RT_LWIP_USING_RT_MEM
|
||||||
#define RT_LWIP_TCPTHREAD_STACKSIZE 1024
|
// <bool name="RT_LWIP_ICMP" description="Enable ICMP protocol" default="true" />
|
||||||
|
#define RT_LWIP_ICMP
|
||||||
/* ethernet if thread options */
|
// <bool name="RT_LWIP_IGMP" description="Enable IGMP protocol" default="false" />
|
||||||
#define RT_LWIP_ETHTHREAD_PRIORITY 15
|
#define RT_LWIP_IGMP
|
||||||
#define RT_LWIP_ETHTHREAD_MBOX_SIZE 4
|
// <bool name="RT_LWIP_UDP" description="Enable UDP protocol" default="true" />
|
||||||
#define RT_LWIP_ETHTHREAD_STACKSIZE 512
|
#define RT_LWIP_UDP
|
||||||
|
// <bool name="RT_LWIP_TCP" description="Enable TCP protocol" default="true" />
|
||||||
/* SECTION: RT-Thread/GUI */
|
#define RT_LWIP_TCP
|
||||||
/* #define RT_USING_RTGUI */
|
// <bool name="RT_LWIP_DNS" description="Enable DNS protocol" default="true" />
|
||||||
|
#define RT_LWIP_DNS
|
||||||
/* name length of RTGUI object */
|
// <integer name="RT_LWIP_TCP_PCB_NUM" description="Maximal number of simultaneously active TCP connections" default="5" />
|
||||||
#define RTGUI_NAME_MAX 12
|
#define RT_LWIP_TCP_PCB_NUM 5
|
||||||
/* support 16 weight font */
|
// <integer name="RT_LWIP_TCP_SND_BUF" description="TCP sender buffer size" default="8192" />
|
||||||
#define RTGUI_USING_FONT16
|
#define RT_LWIP_TCP_SND_BUF 8192
|
||||||
/* support Chinese font */
|
// <integer name="RT_LWIP_TCP_WND" description="TCP receive window" default="8192" />
|
||||||
#define RTGUI_USING_FONTHZ
|
#define RT_LWIP_TCP_WND 8192
|
||||||
/* use DFS as file interface */
|
// <bool name="RT_LWIP_SNMP" description="Enable SNMP protocol" default="false" />
|
||||||
#define RTGUI_USING_DFS_FILERW
|
// #define RT_LWIP_SNMP
|
||||||
/* use font file as Chinese font */
|
// <bool name="RT_LWIP_DHCP" description="Enable DHCP client to get IP address" default="false" />
|
||||||
#define RTGUI_USING_HZ_FILE
|
// #define RT_LWIP_DHCP
|
||||||
/* use small size in RTGUI */
|
// <integer name="RT_LWIP_TCP_SEG_NUM" description="the number of simultaneously queued TCP" default="8" />
|
||||||
#define RTGUI_USING_SMALL_SIZE
|
#define RT_LWIP_TCP_SEG_NUM 40
|
||||||
/* use mouse cursor */
|
// <integer name="RT_LWIP_TCPTHREAD_PRIORITY" description="the thread priority of TCP thread" default="128" />
|
||||||
/* #define RTGUI_USING_MOUSE_CURSOR */
|
#define RT_LWIP_TCPTHREAD_PRIORITY 12
|
||||||
/* default font size in RTGUI */
|
// <integer name="RT_LWIP_TCPTHREAD_MBOX_SIZE" description="the mail box size of TCP thread to wait for" default="32" />
|
||||||
#define RTGUI_DEFAULT_FONT_SIZE 16
|
#define RT_LWIP_TCPTHREAD_MBOX_SIZE 32
|
||||||
|
// <integer name="RT_LWIP_TCPTHREAD_STACKSIZE" description="the thread stack size of TCP thread" default="4096" />
|
||||||
#endif
|
#define RT_LWIP_TCPTHREAD_STACKSIZE 4096
|
||||||
|
// <integer name="RT_LWIP_ETHTHREAD_PRIORITY" description="the thread priority of ethnetif thread" default="144" />
|
||||||
|
#define RT_LWIP_ETHTHREAD_PRIORITY 14
|
||||||
|
// <integer name="RT_LWIP_ETHTHREAD_MBOX_SIZE" description="the mail box size of ethnetif thread to wait for" default="8" />
|
||||||
|
#define RT_LWIP_ETHTHREAD_MBOX_SIZE 32
|
||||||
|
// <integer name="RT_LWIP_ETHTHREAD_STACKSIZE" description="the stack size of ethnetif thread" default="512" />
|
||||||
|
#define RT_LWIP_ETHTHREAD_STACKSIZE 512
|
||||||
|
// <ipaddr name="RT_LWIP_IPADDR" description="IP address of device" default="192.168.1.30" />
|
||||||
|
#define RT_LWIP_IPADDR0 192
|
||||||
|
#define RT_LWIP_IPADDR1 168
|
||||||
|
#define RT_LWIP_IPADDR2 1
|
||||||
|
#define RT_LWIP_IPADDR3 30
|
||||||
|
// <ipaddr name="RT_LWIP_GWADDR" description="Gateway address of device" default="192.168.1.1" />
|
||||||
|
#define RT_LWIP_GWADDR0 192
|
||||||
|
#define RT_LWIP_GWADDR1 168
|
||||||
|
#define RT_LWIP_GWADDR2 1
|
||||||
|
#define RT_LWIP_GWADDR3 1
|
||||||
|
// <ipaddr name="RT_LWIP_MSKADDR" description="Mask address of device" default="255.255.255.0" />
|
||||||
|
#define RT_LWIP_MSKADDR0 255
|
||||||
|
#define RT_LWIP_MSKADDR1 255
|
||||||
|
#define RT_LWIP_MSKADDR2 255
|
||||||
|
#define RT_LWIP_MSKADDR3 0
|
||||||
|
// </section>
|
||||||
|
|
||||||
|
// </RDTConfigurator>
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
|
@ -30,13 +30,13 @@ if PLATFORM == 'gcc':
|
||||||
AS = PREFIX + 'gcc'
|
AS = PREFIX + 'gcc'
|
||||||
AR = PREFIX + 'ar'
|
AR = PREFIX + 'ar'
|
||||||
LINK = PREFIX + 'gcc'
|
LINK = PREFIX + 'gcc'
|
||||||
TARGET_EXT = 'axf'
|
TARGET_EXT = 'elf'
|
||||||
SIZE = PREFIX + 'size'
|
SIZE = PREFIX + 'size'
|
||||||
OBJDUMP = PREFIX + 'objdump'
|
OBJDUMP = PREFIX + 'objdump'
|
||||||
OBJCPY = PREFIX + 'objcopy'
|
OBJCPY = PREFIX + 'objcopy'
|
||||||
|
|
||||||
DEVICE = ' -mcpu=cortex-m3 -mthumb'
|
DEVICE = ' -mcpu=cortex-m3 -mthumb'
|
||||||
CFLAGS = DEVICE + ' -DRT_USING_MINILIBC'
|
CFLAGS = DEVICE
|
||||||
AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp'
|
AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp'
|
||||||
LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rtthread-lpc17xx.map,-cref,-u,Reset_Handler -T lpc17xx_rom.ld'
|
LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rtthread-lpc17xx.map,-cref,-u,Reset_Handler -T lpc17xx_rom.ld'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue