rtconfig.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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. #define IDLE_THREAD_STACK_SIZE 1024
  11. /* Tick per Second*/
  12. #define RT_TICK_PER_SECOND 100
  13. /* CPU Frequency 200MHz */
  14. #define RT_CPU_FREQ 200
  15. /* SECTION: RT_DEBUG */
  16. /* open debug for system assert */
  17. // #define RT_DEBUG
  18. /* Thread Debug*/
  19. /* #define RT_THREAD_DEBUG */
  20. /* #define RT_SCHEDULER_DEBUG */
  21. /* Using Hook*/
  22. #define RT_USING_HOOK
  23. /* SECTION: IPC */
  24. /* Using Semaphore*/
  25. #define RT_USING_SEMAPHORE
  26. /* Using Mutex*/
  27. #define RT_USING_MUTEX
  28. /* Using Event*/
  29. #define RT_USING_EVENT
  30. /* Using MailBox*/
  31. #define RT_USING_MAILBOX
  32. /* Using Message Queue*/
  33. #define RT_USING_MESSAGEQUEUE
  34. /* SECTION: Memory Management */
  35. /* Using Memory Pool Management*/
  36. #define RT_USING_MEMPOOL
  37. /* Using Dynamic Heap Management*/
  38. #define RT_USING_HEAP
  39. /* Using Small MM*/
  40. #define RT_USING_SMALL_MEM
  41. #define RT_TINY_SIZE
  42. /* SECTION: Device System */
  43. /* Using Device System*/
  44. #define RT_USING_DEVICE
  45. #define RT_USING_UART1
  46. #define RT_UART_RX_BUFFER_SIZE 64
  47. /* SECTION: Console options */
  48. #define RT_USING_CONSOLE
  49. /* the buffer size of console*/
  50. #define RT_CONSOLEBUF_SIZE 128
  51. /* SECTION: FinSH shell options */
  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: lwip, a lighwight TCP/IP protocol stack */
  58. /* #define RT_USING_LWIP */
  59. /* Enable ICMP protocol*/
  60. #define RT_LWIP_ICMP
  61. /* Enable UDP protocol*/
  62. #define RT_LWIP_UDP
  63. /* Enable TCP protocol*/
  64. #define RT_LWIP_TCP
  65. /* Enable DNS */
  66. #define RT_LWIP_DNS
  67. /* the number of simulatenously active TCP connections*/
  68. #define RT_LWIP_TCP_PCB_NUM 5
  69. /* ip address of target*/
  70. #define RT_LWIP_IPADDR0 192
  71. #define RT_LWIP_IPADDR1 168
  72. #define RT_LWIP_IPADDR2 1
  73. #define RT_LWIP_IPADDR3 30
  74. /* gateway address of target*/
  75. #define RT_LWIP_GWADDR0 192
  76. #define RT_LWIP_GWADDR1 168
  77. #define RT_LWIP_GWADDR2 1
  78. #define RT_LWIP_GWADDR3 1
  79. /* mask address of target*/
  80. #define RT_LWIP_MSKADDR0 255
  81. #define RT_LWIP_MSKADDR1 255
  82. #define RT_LWIP_MSKADDR2 255
  83. #define RT_LWIP_MSKADDR3 0
  84. /* tcp thread options */
  85. #define RT_LWIP_TCPTHREAD_PRIORITY 12
  86. #define RT_LWIP_TCPTHREAD_MBOX_SIZE 4
  87. #define RT_LWIP_TCPTHREAD_STACKSIZE 1024
  88. /* ethernet if thread options */
  89. #define RT_LWIP_ETHTHREAD_PRIORITY 15
  90. #define RT_LWIP_ETHTHREAD_MBOX_SIZE 4
  91. #define RT_LWIP_ETHTHREAD_STACKSIZE 512
  92. #endif