rtconfig.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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 256
  10. /* Tick per Second*/
  11. #define RT_TICK_PER_SECOND 100
  12. /* SECTION: RT_DEBUG */
  13. /* Thread Debug*/
  14. /* #define RT_THREAD_DEBUG */
  15. /* Using Hook*/
  16. #define RT_USING_HOOK
  17. /* SECTION: IPC */
  18. /* Using Semaphore*/
  19. #define RT_USING_SEMAPHORE
  20. /* Using Mutex*/
  21. #define RT_USING_MUTEX
  22. /* Using Event*/
  23. #define RT_USING_EVENT
  24. /* Using Faset Event*/
  25. /* #define RT_USING_FASTEVENT */
  26. /* Using MailBox*/
  27. #define RT_USING_MAILBOX
  28. /* Using Message Queue*/
  29. #define RT_USING_MESSAGEQUEUE
  30. /* SECTION: Memory Management */
  31. /* Using Memory Pool Management*/
  32. #define RT_USING_MEMPOOL
  33. /* Using Dynamic Heap Management*/
  34. #define RT_USING_HEAP
  35. /* Using Small MM*/
  36. /* #define RT_USING_SMALL_MEM */
  37. /* Using SLAB Allocator*/
  38. #define RT_USING_SLAB
  39. /* SECTION: Device System */
  40. /* Using Device System*/
  41. #define RT_USING_DEVICE
  42. /* SECTION: Console options */
  43. /* the buffer size of console*/
  44. #define RT_CONSOLEBUF_SIZE 128
  45. /* SECTION: FinSH shell options */
  46. /* Using FinSH as Shell*/
  47. /* #define RT_USING_FINSH */
  48. /* SECTION: a mini libc */
  49. /* Using mini libc library*/
  50. /* #define RT_USING_MINILIBC */
  51. /* SECTION: C++ support */
  52. /* Using C++ support*/
  53. /* #define RT_USING_CPLUSPLUS */
  54. /* SECTION: lwip, a lighwight TCP/IP protocol stack */
  55. /* Using lighweight TCP/IP protocol stack*/
  56. /* #define RT_USING_LWIP */
  57. /* Trace LwIP protocol*/
  58. /* #define RT_LWIP_DEBUG */
  59. /* Enable ICMP protocol*/
  60. #define RT_LWIP_ICMP
  61. /* Enable IGMP protocol*/
  62. #define RT_LWIP_IGMP
  63. /* Enable UDP protocol*/
  64. #define RT_LWIP_UDP
  65. /* Enable TCP protocol*/
  66. #define RT_LWIP_TCP
  67. /* Enable SNMP protocol*/
  68. /* #define RT_LWIP_SNMP */
  69. /* Using DHCP*/
  70. /* #define RT_LWIP_DHCP */
  71. /* ip address of target*/
  72. #define RT_LWIP_IPADDR0 192
  73. #define RT_LWIP_IPADDR1 168
  74. #define RT_LWIP_IPADDR2 0
  75. #define RT_LWIP_IPADDR3 30
  76. /* gateway address of target*/
  77. #define RT_LWIP_GWADDR0 192
  78. #define RT_LWIP_GWADDR1 168
  79. #define RT_LWIP_GWADDR2 0
  80. #define RT_LWIP_GWADDR3 1
  81. /* mask address of target*/
  82. #define RT_LWIP_MSKADDR0 255
  83. #define RT_LWIP_MSKADDR1 255
  84. #define RT_LWIP_MSKADDR2 255
  85. #define RT_LWIP_MSKADDR3 0
  86. #endif