/* RT-Thread config file */ #ifndef __RTTHREAD_CFG_H__ #define __RTTHREAD_CFG_H__ // // #define RT_NAME_MAX 6 // #define RT_ALIGN_SIZE 4 // // 8 // 32 // 256 // #define RT_THREAD_PRIORITY_MAX 32 // #define RT_TICK_PER_SECOND 100 //
#define RT_DEBUG // // #define RT_THREAD_DEBUG // #define RT_USING_OVERFLOW_CHECK //
// #define RT_USING_HOOK //
// #define RT_USING_TIMER_SOFT // #define RT_TIMER_THREAD_PRIO 4 // #define RT_TIMER_THREAD_STACK_SIZE 512 //
//
// #define RT_USING_SEMAPHORE // #define RT_USING_MUTEX // #define RT_USING_EVENT // #define RT_USING_MAILBOX // #define RT_USING_MESSAGEQUEUE //
//
// #define RT_USING_MEMPOOL // #define RT_USING_MEMHEAP // #define RT_USING_HEAP // #define RT_USING_SMALL_MEM // // #define RT_USING_SLAB //
//
#define RT_USING_DEVICE // #define RT_USING_DEVICE_IPC // #define RT_USING_SERIAL // #define RT_USING_UART0 //
//
#define RT_USING_CONSOLE // #define RT_CONSOLEBUF_SIZE 128 // #define RT_CONSOLE_DEVICE_NAME "console" //
//
#define RT_USING_FINSH // #define FINSH_USING_SYMTAB // #define FINSH_USING_DESCRIPTION // #define FINSH_THREAD_STACK_SIZE 4096 // #define FINSH_USING_MSH // #define FINSH_USING_MSH_DEFAULT //
//
// // #define RT_USING_LIBC // // #define RT_USING_PTHREADS //
//
#define RT_USING_DFS // #define DFS_USING_WORKDIR // #define DFS_FILESYSTEMS_MAX 2 // #define DFS_FD_MAX 4 // #define RT_USING_DFS_ELMFAT // // 1 // 2 // 3 // #define RT_DFS_ELM_USE_LFN 3 // #define RT_DFS_ELM_CODE_PAGE 437 // #define RT_DFS_ELM_MAX_LFN 128 // // #define RT_USING_DFS_YAFFS2 // // #define RT_USING_DFS_UFFS // // #define RT_USING_DFS_DEVFS // // #define RT_USING_DFS_NFS // #define RT_NFS_HOST_EXPORT "192.168.1.5:/" //
//
// #define RT_USING_LWIP // #define RT_LWIP_ICMP // // #define RT_LWIP_IGMP // #define RT_LWIP_UDP // #define RT_LWIP_TCP // #define RT_LWIP_DNS // // #define RT_LWIP_SNMP // // #define RT_LWIP_DHCP // #define RT_LWIP_TCPTHREAD_PRIORITY 12 // #define RT_LWIP_TCPTHREAD_MBOX_SIZE 8 // #define RT_LWIP_TCPTHREAD_STACKSIZE 4096 // #define RT_LWIP_ETHTHREAD_PRIORITY 14 // #define RT_LWIP_ETHTHREAD_MBOX_SIZE 8 // #define RT_LWIP_ETHTHREAD_STACKSIZE 512 // #define RT_LWIP_IPADDR0 192 #define RT_LWIP_IPADDR1 168 #define RT_LWIP_IPADDR2 1 #define RT_LWIP_IPADDR3 30 // #define RT_LWIP_GWADDR0 192 #define RT_LWIP_GWADDR1 168 #define RT_LWIP_GWADDR2 1 #define RT_LWIP_GWADDR3 1 // #define RT_LWIP_MSKADDR0 255 #define RT_LWIP_MSKADDR1 255 #define RT_LWIP_MSKADDR2 255 #define RT_LWIP_MSKADDR3 0 //
//
// #define RT_USING_RTGUI // #define RTGUI_NAME_MAX 12 // #define RTGUI_USING_SMALL_SIZE // #define RTGUI_USING_FONT16 // // #define RTGUI_USING_FONT12 // #define RTGUI_USING_FONTHZ // #define RTGUI_DEFAULT_FONT_SIZE 16 // #define RTGUI_USING_DFS_FILERW // #define RTGUI_USING_HZ_BMP // #define RTGUI_IMAGE_XPM // // #define RTGUI_IMAGE_JPEG // // #define RTGUI_IMAGE_PNG // #define RTGUI_IMAGE_BMP // #define RTGUI_USING_HZ_FILE // #define RTGUI_USING_MOUSE_CURSOR //
//
#define RT_HEAP_SIZE (1024*1024*2) #if defined(_MSC_VER) #define NORESOURCE //RT_VESRION in winuser.h #define _CRT_ERRNO_DEFINED //errno macro redefinition #define _INC_WTIME_INL//dfs_elm.c time.h conflicts with wtime.inl #define _INC_TIME_INL //dfs_elm.c time.h conflicts with wtime.inl /* disable some warning in MSC */ #pragma warning(disable:4273) /* to ignore: warning C4273: inconsistent dll linkage */ #pragma warning(disable:4312) /* to ignore: warning C4312: 'type cast' : conversion from 'rt_uint32_t' to 'rt_uint32_t *' */ #pragma warning(disable:4311) /* to ignore: warning C4311: 'type cast' : pointer truncation from 'short *__w64 ' to 'long' */ #pragma warning(disable:4996) /* to ignore: warning C4996: The POSIX name for this item is deprecated. */ #pragma warning(disable:4267) /* to ignore: warning C4267: conversion from 'size_t' to 'rt_size_t', possible loss of data */ #pragma warning(disable:4244) /* to ignore: warning C4244: '=' : conversion from '__w64 int' to 'rt_size_t', possible loss of data */ #elif defined(__GNUC__) #define RT_USING_NOLIBC #if defined(__MINGW32__) #define _NO_OLDNAMES /* to ignore: mode_t in sys/type.h */ #endif /* end of __MINGW32__ */ #endif /* end of _MSC_VER */ #ifdef _WIN32 #define RT_USING_DFS_WINSHAREDIR #endif #endif