1 /* system.h - SOPC Builder system and BSP software package information */ 2 #include "system.h" 3 4 /* RT-Thread config file */ 5 #ifndef __RTTHREAD_CFG_H__ 6 #define __RTTHREAD_CFG_H__ 7 8 /* RT_NAME_MAX*/ 9 #define RT_NAME_MAX 8 10 11 /* RT_ALIGN_SIZE*/ 12 #define RT_ALIGN_SIZE 8 13 14 /* PRIORITY_MAX */ 15 #define RT_THREAD_PRIORITY_MAX 32 16 17 /* Tick per Second */ 18 /* TIMER_TICKS_PER_SEC define in system.h */ 19 #define RT_TICK_PER_SECOND TIMER_TICKS_PER_SEC 20 21 /* SECTION: RT_DEBUG */ 22 /* Thread Debug */ 23 #define RT_DEBUG 24 #define RT_DEBUG_COLOR 25 //#define THREAD_DEBUG 26 //#define SCHEDULER_DEBUG 27 //#define IRQ_DEBUG 28 29 #define IDLE_THREAD_STACK_SIZE 1024 30 31 #define RT_USING_OVERFLOW_CHECK 32 33 /* Using Hook */ 34 #define RT_USING_HOOK 35 36 /* Using Software Timer */ 37 /* #define RT_USING_TIMER_SOFT */ 38 #define RT_TIMER_THREAD_PRIO 4 39 #define RT_TIMER_THREAD_STACK_SIZE 512 40 #define RT_TICK_PER_SECOND 10 41 42 /* SECTION: IPC */ 43 /* Using Semaphore*/ 44 #define RT_USING_SEMAPHORE 45 46 /* Using Mutex */ 47 #define RT_USING_MUTEX 48 49 /* Using Event */ 50 #define RT_USING_EVENT 51 52 /* Using MailBox */ 53 #define RT_USING_MAILBOX 54 55 /* Using Message Queue */ 56 #define RT_USING_MESSAGEQUEUE 57 58 /* SECTION: Memory Management */ 59 /* Using Memory Pool Management*/ 60 #define RT_USING_MEMPOOL 61 62 /* Using Dynamic Heap Management */ 63 #define RT_USING_HEAP 64 65 /* Using Small MM */ 66 #define RT_USING_SMALL_MEM 67 68 /* SECTION: Device System */ 69 /* Using Device System */ 70 #define RT_USING_DEVICE 71 #define RT_USING_UART1 72 73 /* SECTION: Console options */ 74 #define RT_USING_CONSOLE 75 /* the buffer size of console*/ 76 #define RT_CONSOLEBUF_SIZE 128 77 78 /* SECTION: finsh, a C-Express shell */ 79 #define RT_USING_FINSH 80 /* Using symbol table */ 81 #define FINSH_USING_SYMTAB 82 #define FINSH_USING_DESCRIPTION 83 #define __fsymtab_start _alt_partition_FSymTab_start 84 #define __fsymtab_end _alt_partition_FSymTab_end 85 #define __vsymtab_start _alt_partition_VSymTab_start 86 #define __vsymtab_end _alt_partition_VSymTab_end 87 88 /* SECTION: device filesystem */ 89 //#define RT_USING_DFS 90 #define RT_USING_DFS_ELMFAT 91 92 /* the max number of mounted filesystem */ 93 #define DFS_FILESYSTEMS_MAX 2 94 /* the max number of opened files */ 95 #define DFS_FD_MAX 4 96 /* the max number of cached sector */ 97 #define DFS_CACHE_MAX_NUM 4 98 99 /* SECTION: lwip, a lighwight TCP/IP protocol stack */ 100 //#define RT_USING_LWIP 101 /* Enable ICMP protocol*/ 102 #define RT_LWIP_ICMP 103 /* Enable UDP protocol*/ 104 #define RT_LWIP_UDP 105 /* Enable TCP protocol*/ 106 #define RT_LWIP_TCP 107 /* Enable DNS */ 108 #define RT_LWIP_DNS 109 110 /* the number of simulatenously active TCP connections*/ 111 #define RT_LWIP_TCP_PCB_NUM 5 112 113 /* Using DHCP */ 114 //#define RT_LWIP_DHCP 115 116 /* ip address of target*/ 117 #define RT_LWIP_IPADDR0 192 118 #define RT_LWIP_IPADDR1 168 119 #define RT_LWIP_IPADDR2 1 120 #define RT_LWIP_IPADDR3 30 121 122 /* gateway address of target*/ 123 #define RT_LWIP_GWADDR0 192 124 #define RT_LWIP_GWADDR1 168 125 #define RT_LWIP_GWADDR2 1 126 #define RT_LWIP_GWADDR3 1 127 128 /* mask address of target*/ 129 #define RT_LWIP_MSKADDR0 255 130 #define RT_LWIP_MSKADDR1 255 131 #define RT_LWIP_MSKADDR2 255 132 #define RT_LWIP_MSKADDR3 0 133 134 /* tcp thread options */ 135 #define RT_LWIP_TCPTHREAD_PRIORITY 12 136 #define RT_LWIP_TCPTHREAD_MBOX_SIZE 4 137 #define RT_LWIP_TCPTHREAD_STACKSIZE 1024 138 139 /* ethernet if thread options */ 140 #define RT_LWIP_ETHTHREAD_PRIORITY 15 141 #define RT_LWIP_ETHTHREAD_MBOX_SIZE 4 142 #define RT_LWIP_ETHTHREAD_STACKSIZE 512 143 144 #endif 145