rtconfig.h 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. /* RT-Thread config file */
  2. #ifndef __RTTHREAD_CFG_H__
  3. #define __RTTHREAD_CFG_H__
  4. // <<< Use Configuration Wizard in Context Menu >>>
  5. // <h>Basic Configuration
  6. // <o>Maximal level of thread priority <8-256>
  7. // <i>Default: 32
  8. #define RT_THREAD_PRIORITY_MAX 32
  9. // <o>OS tick per second
  10. // <i>Default: 1000 (1ms)
  11. #define RT_TICK_PER_SECOND 1000
  12. // <o>Alignment size for CPU architecture data access
  13. // <i>Default: 4
  14. #define RT_ALIGN_SIZE 4
  15. // <o>the max length of object name<2-16>
  16. // <i>Default: 8
  17. #define RT_NAME_MAX 8
  18. // <c1>Using RT-Thread components initialization
  19. // <i>Using RT-Thread components initialization
  20. #define RT_USING_COMPONENTS_INIT
  21. // </c>
  22. // <c1>Using user main
  23. // <i>Using user main
  24. #define RT_USING_USER_MAIN
  25. // </c>
  26. // <o>the size of main thread<1-4086>
  27. // <i>Default: 512
  28. #define RT_MAIN_THREAD_STACK_SIZE 1024
  29. // </h>
  30. // <h>Debug Configuration
  31. // <c1>enable kernel debug configuration
  32. // <i>Default: enable kernel debug configuration
  33. //#define RT_DEBUG
  34. // </c>
  35. // <o>enable components initialization debug configuration<0-1>
  36. // <i>Default: 0
  37. #define RT_DEBUG_INIT 0
  38. // <c1>thread stack over flow detect
  39. // <i> Diable Thread stack over flow detect
  40. //#define RT_USING_OVERFLOW_CHECK
  41. // </c>
  42. // </h>
  43. // <h>Hook Configuration
  44. // <c1>using hook
  45. // <i>using hook
  46. //#define RT_USING_HOOK
  47. // </c>
  48. // <c1>using idle hook
  49. // <i>using idle hook
  50. //#define RT_USING_IDLE_HOOK
  51. // </c>
  52. // </h>
  53. // <h>Software timers Configuration
  54. // <c1> Enables user timers
  55. // <i> Enables user timers
  56. //#define RT_USING_TIMER_SOFT
  57. // </c>
  58. // <o>The priority level of timer thread <0-31>
  59. // <i>Default: 4
  60. #define RT_TIMER_THREAD_PRIO 4
  61. // <o>The stack size of timer thread <0-8192>
  62. // <i>Default: 512
  63. #define RT_TIMER_THREAD_STACK_SIZE 512
  64. // </h>
  65. // <h>IPC(Inter-process communication) Configuration
  66. // <c1>Using Semaphore
  67. // <i>Using Semaphore
  68. #define RT_USING_SEMAPHORE
  69. // </c>
  70. // <c1>Using Mutex
  71. // <i>Using Mutex
  72. //#define RT_USING_MUTEX
  73. // </c>
  74. // <c1>Using Event
  75. // <i>Using Event
  76. //#define RT_USING_EVENT
  77. // </c>
  78. // <c1>Using MailBox
  79. // <i>Using MailBox
  80. //#define RT_USING_MAILBOX
  81. // </c>
  82. // <c1>Using Message Queue
  83. // <i>Using Message Queue
  84. //#define RT_USING_MESSAGEQUEUE
  85. // </c>
  86. // </h>
  87. // <h>Memory Management Configuration
  88. // <c1>Using Mempool Management
  89. // <i>Using Mempool Management
  90. //#define RT_USING_MEMPOOL
  91. // </c>
  92. // <c1>Dynamic Heap Management
  93. // <i>Dynamic Heap Management
  94. //#define RT_USING_HEAP
  95. // </c>
  96. // <c1>using small memory
  97. // <i>using small memory
  98. #define RT_USING_SMALL_MEM
  99. // </c>
  100. // <c1>using tiny size of memory
  101. // <i>using tiny size of memory
  102. //#define RT_USING_TINY_SIZE
  103. // </c>
  104. // </h>
  105. // <h>Console Configuration
  106. // <c1>Using console
  107. // <i>Using console
  108. #define RT_USING_CONSOLE
  109. // </c>
  110. // <o>the buffer size of console <1-1024>
  111. // <i>the buffer size of console
  112. // <i>Default: 128 (128Byte)
  113. #define RT_CONSOLEBUF_SIZE 128
  114. // </h>
  115. // <h>Enable FinSH Configuration
  116. // <c1>include shell config
  117. // <i> Select this choice if you using FinSH
  118. #include "finsh_config.h"
  119. // </c>
  120. // </h>
  121. // <h>Device Configuration
  122. // <c1>using device framework
  123. // <i>using device framework
  124. //#define RT_USING_DEVICE
  125. // </c>
  126. // </h>
  127. // <<< end of configuration section >>>
  128. #endif