rtconfig.h 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. /* RT-Thread config file */
  2. #ifndef __RTTHREAD_CFG_H__
  3. #define __RTTHREAD_CFG_H__
  4. /* RT_NAME_MAX*/
  5. #define RT_NAME_MAX 8
  6. /* RT_ALIGN_SIZE*/
  7. #define RT_ALIGN_SIZE 4
  8. /* PRIORITY_MAX */
  9. #define RT_THREAD_PRIORITY_MAX 32
  10. /* Tick per Second */
  11. #define RT_TICK_PER_SECOND 100
  12. /* SECTION: RT_DEBUG */
  13. /* Thread Debug */
  14. #define RT_DEBUG
  15. /* #define RT_THREAD_DEBUG */
  16. #define RT_USING_OVERFLOW_CHECK
  17. /* Using Hook */
  18. #define RT_USING_HOOK
  19. /* Using Software Timer */
  20. /* #define RT_USING_TIMER_SOFT */
  21. #define RT_TIMER_THREAD_PRIO 4
  22. #define RT_TIMER_THREAD_STACK_SIZE 512
  23. #define RT_TIMER_TICK_PER_SECOND 10
  24. /* SECTION: IPC */
  25. /* Using Semaphore */
  26. #define RT_USING_SEMAPHORE
  27. /* Using Mutex */
  28. #define RT_USING_MUTEX
  29. /* Using Event */
  30. #define RT_USING_EVENT
  31. /* Using MailBox */
  32. #define RT_USING_MAILBOX
  33. /* Using Message Queue */
  34. #define RT_USING_MESSAGEQUEUE
  35. /* SECTION: Memory Management */
  36. /* Using Memory Pool Management*/
  37. #define RT_USING_MEMPOOL
  38. /* Using Dynamic Heap Management */
  39. #define RT_USING_HEAP
  40. /* Using Small MM */
  41. #define RT_USING_SMALL_MEM
  42. /* SECTION: Device System */
  43. /* Using Device System */
  44. #define RT_USING_DEVICE
  45. /* RT_USING_UART */
  46. #define RT_USING_UART0
  47. #define RT_UART_RX_BUFFER_SIZE 64
  48. /* SECTION: Console options */
  49. /* the buffer size of console */
  50. #define RT_CONSOLEBUF_SIZE 128
  51. /* SECTION: finsh, a C-Express shell */
  52. /* Using FinSH as Shell*/
  53. #define RT_USING_FINSH
  54. /* Using symbol table */
  55. #define FINSH_USING_SYMTAB
  56. #define FINSH_USING_DESCRIPTION
  57. /* SECTION: device filesystem support */
  58. #define RT_USING_DFS
  59. #define RT_USING_DFS_ELMFAT
  60. /* the max number of mounted filesystem */
  61. #define DFS_FILESYSTEMS_MAX 2
  62. /* the max number of opened files */
  63. #define DFS_FD_MAX 4
  64. /* the max number of cached sector */
  65. #define DFS_CACHE_MAX_NUM 4
  66. /* SECTION: lwip, a lighwight TCP/IP protocol stack */
  67. #define RT_USING_LWIP
  68. #define RT_LWIP_USING_RT_MEM
  69. /* Enable ICMP protocol*/
  70. #define RT_LWIP_ICMP
  71. /* Enable UDP protocol*/
  72. #define RT_LWIP_UDP
  73. /* Enable TCP protocol*/
  74. #define RT_LWIP_TCP
  75. /* Enable DNS */
  76. #define RT_LWIP_DNS
  77. /* the number of simulatenously active TCP connections*/
  78. #define RT_LWIP_TCP_PCB_NUM 5
  79. /* ip address of target*/
  80. #define RT_LWIP_IPADDR0 192
  81. #define RT_LWIP_IPADDR1 168
  82. #define RT_LWIP_IPADDR2 1
  83. #define RT_LWIP_IPADDR3 30
  84. /* gateway address of target*/
  85. #define RT_LWIP_GWADDR0 192
  86. #define RT_LWIP_GWADDR1 168
  87. #define RT_LWIP_GWADDR2 1
  88. #define RT_LWIP_GWADDR3 1
  89. /* mask address of target*/
  90. #define RT_LWIP_MSKADDR0 255
  91. #define RT_LWIP_MSKADDR1 255
  92. #define RT_LWIP_MSKADDR2 255
  93. #define RT_LWIP_MSKADDR3 0
  94. /* tcp thread options */
  95. #define RT_LWIP_TCPTHREAD_PRIORITY 12
  96. #define RT_LWIP_TCPTHREAD_MBOX_SIZE 4
  97. #define RT_LWIP_TCPTHREAD_STACKSIZE 1024
  98. /* ethernet if thread options */
  99. #define RT_LWIP_ETHTHREAD_PRIORITY 15
  100. #define RT_LWIP_ETHTHREAD_MBOX_SIZE 4
  101. #define RT_LWIP_ETHTHREAD_STACKSIZE 512
  102. /* SECTION: RT-Thread/GUI */
  103. /* #define RT_USING_RTGUI */
  104. /* name length of RTGUI object */
  105. #define RTGUI_NAME_MAX 12
  106. /* support 16 weight font */
  107. #define RTGUI_USING_FONT16
  108. /* support Chinese font */
  109. #define RTGUI_USING_FONTHZ
  110. /* use DFS as file interface */
  111. #define RTGUI_USING_DFS_FILERW
  112. /* use font file as Chinese font */
  113. #define RTGUI_USING_HZ_FILE
  114. /* use small size in RTGUI */
  115. #define RTGUI_USING_SMALL_SIZE
  116. /* use mouse cursor */
  117. /* #define RTGUI_USING_MOUSE_CURSOR */
  118. /* default font size in RTGUI */
  119. #define RTGUI_DEFAULT_FONT_SIZE 16
  120. #endif