2013-09-20 21:20:51 +08:00
|
|
|
/* RT-Thread config file */
|
|
|
|
#ifndef __RTTHREAD_CFG_H__
|
|
|
|
#define __RTTHREAD_CFG_H__
|
|
|
|
|
2014-08-12 18:39:53 +08:00
|
|
|
// <section name="RT_USING_GDB" description="Gdb Stub for rtt" default="true" >
|
|
|
|
//#define RT_USING_GDB
|
|
|
|
//#define RT_GDB_DEBUG
|
|
|
|
#define RT_GDB_ICACHE
|
|
|
|
// </section>
|
|
|
|
|
2013-09-20 21:20:51 +08:00
|
|
|
// <RDTConfigurator URL="http://www.rt-thread.com/eclipse">
|
|
|
|
|
|
|
|
// <integer name="RT_NAME_MAX" description="Maximal size of kernel object name length" default="6" />
|
|
|
|
#define RT_NAME_MAX 6
|
|
|
|
// <integer name="RT_ALIGN_SIZE" description="Alignment size for CPU architecture data access" default="4" />
|
|
|
|
#define RT_ALIGN_SIZE 4
|
|
|
|
// <integer name="RT_THREAD_PRIORITY_MAX" description="Maximal level of thread priority" default="32">
|
|
|
|
// <item description="8">8</item>
|
|
|
|
// <item description="32">32</item>
|
|
|
|
// <item description="256">256</item>
|
|
|
|
// </integer>
|
|
|
|
#define RT_THREAD_PRIORITY_MAX 32
|
|
|
|
// <integer name="RT_TICK_PER_SECOND" description="OS tick per second" default="1000" />
|
|
|
|
#define RT_TICK_PER_SECOND 1000
|
|
|
|
// <integer name="IDLE_THREAD_STACK_SIZE" description="The stack size of idle thread" default="512" />
|
|
|
|
#define IDLE_THREAD_STACK_SIZE 512
|
|
|
|
// <section name="RT_DEBUG" description="Kernel Debug Configuration" default="true" >
|
|
|
|
#define RT_DEBUG
|
|
|
|
//#define RT_DEBUG_SCHEDULER 1
|
|
|
|
// <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" />
|
|
|
|
#define RT_TIMER_THREAD_PRIO 4
|
|
|
|
// <integer name="RT_TIMER_THREAD_STACK_SIZE" description="The stack size of timer thread" default="512" />
|
|
|
|
#define RT_TIMER_THREAD_STACK_SIZE 512
|
|
|
|
// <integer name="RT_TIMER_TICK_PER_SECOND" description="The soft-timer tick per second" default="10" />
|
|
|
|
#define RT_TIMER_TICK_PER_SECOND 10
|
|
|
|
// </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
|
|
|
|
// <bool name="RT_USING_MEMHEAP" description="Using Memory Heap Object in the system" default="true" />
|
|
|
|
// #define RT_USING_MEMHEAP
|
|
|
|
// <bool name="RT_USING_HEAP" description="Using Dynamic Heap Management in the system" default="true" />
|
|
|
|
#define RT_USING_HEAP
|
|
|
|
// <bool name="RT_USING_MEMHEAP_AS_HEAP" description="Using Memory Heap Object as system heap" default="true" />
|
|
|
|
// #define RT_USING_MEMHEAP_AS_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
|
|
|
|
// <bool name=RT_USING_DEVICE_IPC description="Using IPC in Device Driver Framework" default="true" />
|
|
|
|
#define RT_USING_DEVICE_IPC
|
|
|
|
// <bool name="RT_USING_SERIAL" description="Using Serial Device Driver Framework" default="true" />
|
|
|
|
#define RT_USING_SERIAL
|
2014-01-11 15:09:43 +08:00
|
|
|
// <bool name="RT_USING_UART0" description="Using uart0" default="true" >
|
|
|
|
#define RT_USING_UART0
|
|
|
|
// <bool name="RT_USING_UART1" description="Using uart1" default="true" >
|
|
|
|
#define RT_USING_UART1
|
|
|
|
// <bool name="RT_USING_UART2" description="Using uart2" default="true" >
|
|
|
|
#define RT_USING_UART2
|
|
|
|
// <bool name="RT_USING_UART3" description="Using uart3" default="true" >
|
|
|
|
//#define RT_USING_UART3
|
|
|
|
// <bool name="RT_USING_UART4" description="Using uart4" default="true" >
|
|
|
|
#define RT_USING_UART4
|
|
|
|
// <bool name="RT_USING_UART5" description="Using uart5" default="true" >
|
|
|
|
#define RT_USING_UART5
|
2015-06-19 04:16:51 +08:00
|
|
|
// <bool name="RT_USING_PIN" description="Using GPIO Device Driver Framework" default="true" >
|
|
|
|
#define RT_USING_PIN
|
2013-09-20 21:20:51 +08:00
|
|
|
// <integer name="RT_UART_RX_BUFFER_SIZE" description="The buffer size for UART reception" default="64" />
|
|
|
|
#define RT_UART_RX_BUFFER_SIZE 64
|
|
|
|
// <bool name=RT_USING_INTERRUPT_INFO description="Using interrupt information description" default="true" />
|
|
|
|
#define RT_USING_INTERRUPT_INFO
|
|
|
|
// </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" />
|
|
|
|
#define RT_CONSOLEBUF_SIZE 128
|
|
|
|
// <string name="RT_CONSOLE_DEVICE_NAME" description="The device name for console" default="uart" />
|
2014-01-11 15:09:43 +08:00
|
|
|
#define RT_CONSOLE_DEVICE_NAME "uart0"
|
2013-09-20 21:20:51 +08:00
|
|
|
// </section>
|
|
|
|
|
|
|
|
// <bool name="RT_USING_COMPONENTS_INIT" description="Using RT-Thread components initialization" default="true" />
|
|
|
|
#define RT_USING_COMPONENTS_INIT
|
|
|
|
// <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_MSH" description="Using module shell" default="true" />
|
|
|
|
#define FINSH_USING_MSH
|
|
|
|
// <bool name="FINSH_USING_MSH_DEFAULT" description="The default shell is msh" default="true" />
|
|
|
|
//#define FINSH_USING_MSH_DEFAULT
|
|
|
|
// <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" />
|
|
|
|
#define FINSH_THREAD_STACK_SIZE 4096
|
|
|
|
// </section>
|
|
|
|
|
|
|
|
// <section name="LIBC" description="C Runtime library setting" default="always" >
|
2015-05-04 21:09:07 +08:00
|
|
|
// <bool name="RT_USING_LIBC" description="Using C library" default="true" />
|
|
|
|
#define RT_USING_LIBC
|
2013-09-20 21:20:51 +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" />
|
|
|
|
// #define DFS_USING_WORKDIR
|
|
|
|
// <integer name="DFS_FILESYSTEMS_MAX" description="The maximal number of mounted file system" default="4" />
|
|
|
|
#define DFS_FILESYSTEMS_MAX 2
|
|
|
|
// <integer name="DFS_FD_MAX" description="The maximal number of opened files" default="4" />
|
|
|
|
#define DFS_FD_MAX 4
|
|
|
|
// <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>
|
|
|
|
#define RT_DFS_ELM_USE_LFN 1
|
|
|
|
// <integer name="RT_DFS_ELM_MAX_LFN" description="Maximal size of file name length" default="256" />
|
|
|
|
#define RT_DFS_ELM_MAX_LFN 64
|
|
|
|
// <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:/" />
|
|
|
|
#define RT_NFS_HOST_EXPORT "192.168.1.5:/"
|
|
|
|
// </section>
|
|
|
|
|
|
|
|
// </RDTConfigurator>
|
|
|
|
|
|
|
|
#define __rt_ffs __builtin_ffs
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|