1 /* RT-Thread config file */ 2 #ifndef __RTTHREAD_CFG_H__ 3 #define __RTTHREAD_CFG_H__ 4 5 #define IDLE_THREAD_STACK_SIZE 2048 6 7 /* RT_NAME_MAX*/ 8 #define RT_NAME_MAX 32 9 10 /* RT_ALIGN_SIZE*/ 11 #define RT_ALIGN_SIZE 8 12 13 /* PRIORITY_MAX*/ 14 #define RT_THREAD_PRIORITY_MAX 32 15 16 /* Tick per Second*/ 17 #define RT_TICK_PER_SECOND 100 18 19 20 /* SECTION: RT_DEBUG */ 21 /* Thread Debug*/ 22 /* #define RT_THREAD_DEBUG */ 23 24 /* Using Hook*/ 25 #define RT_USING_HOOK 26 27 /* SECTION: IPC */ 28 /* Using Semaphore*/ 29 #define RT_USING_SEMAPHORE 30 31 /* Using Mutex*/ 32 #define RT_USING_MUTEX 33 34 /* Using Event*/ 35 #define RT_USING_EVENT 36 37 /* Using Faset Event*/ 38 /* #define RT_USING_FASTEVENT */ 39 40 /* Using MailBox*/ 41 #define RT_USING_MAILBOX 42 43 /* Using Message Queue*/ 44 #define RT_USING_MESSAGEQUEUE 45 46 /* SECTION: Memory Management */ 47 /* Using Memory Pool Management*/ 48 #define RT_USING_MEMPOOL 49 50 /* Using Dynamic Heap Management*/ 51 #define RT_USING_HEAP 52 53 /* Using Small MM*/ 54 #define RT_USING_SMALL_MEM 55 56 /* Using SLAB Allocator*/ 57 /* #define RT_USING_SLAB */ 58 59 /* SECTION: Device System */ 60 /* Using Device System*/ 61 #define RT_USING_DEVICE 62 63 /* buffer size for UART reception*/ 64 #define RT_UART_RX_BUFFER_SIZE 64 65 66 /* buffer size for UART transmission*/ 67 #define RT_UART_TX_BUFFER_SIZE 64 68 69 /* Using UART1*/ 70 #define RT_USING_UART1 71 72 /* Using UART1*/ 73 /* #define RT_USING_UART2 */ 74 75 /* Using UART1*/ 76 /* #define RT_USING_UART3 */ 77 78 /* SECTION: Console options */ 79 #define RT_USING_CONSOLE 80 /* the buffer size of console*/ 81 #define RT_CONSOLEBUF_SIZE 256 82 83 /* SECTION: FinSH shell options */ 84 /* Using FinSH as Shell*/ 85 #define RT_USING_FINSH 86 /* use symbol table */ 87 #define FINSH_USING_SYMTAB 88 #define FINSH_USING_DESCRIPTION 89 #define FINSH_THREAD_STACK_SIZE 8192 90 91 92 /* SECTION: a runtime libc library */ 93 /* a runtime libc library*/ 94 95 /* SECTION: C++ support */ 96 /* Using C++ support*/ 97 /* #define RT_USING_CPLUSPLUS */ 98 99 /* SECTION: RTGUI support */ 100 /* using RTGUI support*/ 101 /* #define RT_USING_RTGUI */ 102 103 /* SECTION: Device filesystem support */ 104 /* using DFS support*/ 105 /* #define RT_USING_DFS */ 106 107 /* SECTION: EFSL filesystem support */ 108 /* using EFSL filesystem support*/ 109 /* #define RT_USING_EFSL */ 110 111 /* SECTION: lwip, a lighwight TCP/IP protocol stack */ 112 /* Using lighweight TCP/IP protocol stack*/ 113 /* #define RT_USING_LWIP */ 114 115 /* Using webserver goahead support*/ 116 /* #define RT_USING_WEBSERVER */ 117 118 /* Using ftpserver support*/ 119 /* #define RT_USING_FTPSERVER */ 120 121 /* Trace LwIP protocol*/ 122 /* #define RT_LWIP_DEBUG */ 123 124 /* Enable ICMP protocol*/ 125 #define RT_LWIP_ICMP 126 127 /* Enable IGMP protocol*/ 128 #define RT_LWIP_IGMP 129 130 /* Enable UDP protocol*/ 131 #define RT_LWIP_UDP 132 133 /* Enable TCP protocol*/ 134 #define RT_LWIP_TCP 135 136 /* the number of simulatenously active TCP connections*/ 137 #define RT_LWIP_TCP_PCB_NUM 5 138 139 /* TCP sender buffer space*/ 140 #define RT_LWIP_TCP_SND_BUF 10240 141 142 /* Enable SNMP protocol*/ 143 /* #define RT_LWIP_SNMP */ 144 145 /* Using DHCP*/ 146 /* #define RT_LWIP_DHCP */ 147 148 /* ip address of target*/ 149 #define RT_LWIP_IPADDR0 192 150 #define RT_LWIP_IPADDR1 168 151 #define RT_LWIP_IPADDR2 0 152 #define RT_LWIP_IPADDR3 30 153 154 /* gateway address of target*/ 155 #define RT_LWIP_GWADDR0 192 156 #define RT_LWIP_GWADDR1 168 157 #define RT_LWIP_GWADDR2 0 158 #define RT_LWIP_GWADDR3 1 159 160 /* mask address of target*/ 161 #define RT_LWIP_MSKADDR0 255 162 #define RT_LWIP_MSKADDR1 255 163 #define RT_LWIP_MSKADDR2 255 164 #define RT_LWIP_MSKADDR3 0 165 166 /* the number of blocks for pbuf*/ 167 #define RT_LWIP_PBUF_NUM 16 168 169 /* thread priority of tcpip thread*/ 170 #define RT_LWIP_TCPTHREAD_PRIORITY 128 171 172 /* mail box size of tcpip thread to wait for*/ 173 #define RT_LWIP_TCPTHREAD_MBOX_SIZE 8 174 175 /* thread stack size of tcpip thread*/ 176 #define RT_LWIP_TCPTHREAD_STACKSIZE 4096 177 178 /* thread priority of ethnetif thread*/ 179 #define RT_LWIP_ETHTHREAD_PRIORITY 144 180 181 /* mail box size of ethnetif thread to wait for*/ 182 #define RT_LWIP_ETHTHREAD_MBOX_SIZE 32 183 184 /* thread stack size of ethnetif thread*/ 185 #define RT_LWIP_ETHTHREAD_STACKSIZE 1024 186 187 #endif 188