rtconfig.h 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344
  1. #ifndef RT_CONFIG_H__
  2. #define RT_CONFIG_H__
  3. /* RT-Thread Kernel */
  4. #define RT_NAME_MAX 16
  5. #define RT_CPUS_NR 1
  6. #define RT_ALIGN_SIZE 8
  7. #define RT_THREAD_PRIORITY_32
  8. #define RT_THREAD_PRIORITY_MAX 32
  9. #define RT_TICK_PER_SECOND 1000
  10. #define RT_USING_HOOK
  11. #define RT_HOOK_USING_FUNC_PTR
  12. #define RT_USING_IDLE_HOOK
  13. #define RT_IDLE_HOOK_LIST_SIZE 4
  14. #define IDLE_THREAD_STACK_SIZE 1024
  15. /* kservice optimization */
  16. /* end of kservice optimization */
  17. /* klibc optimization */
  18. /* end of klibc optimization */
  19. #define RT_USING_DEBUG
  20. #define RT_DEBUGING_ASSERT
  21. #define RT_DEBUGING_COLOR
  22. #define RT_DEBUGING_CONTEXT
  23. #define RT_USING_OVERFLOW_CHECK
  24. /* Inter-Thread communication */
  25. #define RT_USING_SEMAPHORE
  26. #define RT_USING_MUTEX
  27. #define RT_USING_EVENT
  28. #define RT_USING_MAILBOX
  29. #define RT_USING_MESSAGEQUEUE
  30. /* end of Inter-Thread communication */
  31. /* Memory Management */
  32. #define RT_USING_MEMPOOL
  33. #define RT_USING_SMALL_MEM
  34. #define RT_USING_SMALL_MEM_AS_HEAP
  35. #define RT_USING_HEAP
  36. /* end of Memory Management */
  37. #define RT_USING_DEVICE
  38. #define RT_USING_CONSOLE
  39. #define RT_CONSOLEBUF_SIZE 512
  40. #define RT_CONSOLE_DEVICE_NAME "uart0"
  41. #define RT_VER_NUM 0x50200
  42. #define RT_BACKTRACE_LEVEL_MAX_NR 32
  43. /* end of RT-Thread Kernel */
  44. #define RT_USING_HW_ATOMIC
  45. #define ARCH_ARM
  46. #define ARCH_ARM_CORTEX_R
  47. #define ARCH_ARM_CORTEX_R52
  48. /* RT-Thread Components */
  49. #define RT_USING_COMPONENTS_INIT
  50. #define RT_USING_USER_MAIN
  51. #define RT_MAIN_THREAD_STACK_SIZE 2048
  52. #define RT_MAIN_THREAD_PRIORITY 10
  53. #define RT_USING_MSH
  54. #define RT_USING_FINSH
  55. #define FINSH_USING_MSH
  56. #define FINSH_THREAD_NAME "tshell"
  57. #define FINSH_THREAD_PRIORITY 20
  58. #define FINSH_THREAD_STACK_SIZE 4096
  59. #define FINSH_USING_HISTORY
  60. #define FINSH_HISTORY_LINES 5
  61. #define FINSH_USING_SYMTAB
  62. #define FINSH_CMD_SIZE 80
  63. #define MSH_USING_BUILT_IN_COMMANDS
  64. #define FINSH_USING_DESCRIPTION
  65. #define FINSH_ARG_MAX 10
  66. #define FINSH_USING_OPTION_COMPLETION
  67. /* DFS: device virtual file system */
  68. /* end of DFS: device virtual file system */
  69. /* Device Drivers */
  70. #define RT_USING_DEVICE_IPC
  71. #define RT_UNAMED_PIPE_NUMBER 64
  72. #define RT_USING_SYSTEM_WORKQUEUE
  73. #define RT_SYSTEM_WORKQUEUE_STACKSIZE 2048
  74. #define RT_SYSTEM_WORKQUEUE_PRIORITY 23
  75. #define RT_USING_SERIAL
  76. #define RT_USING_SERIAL_V2
  77. #define RT_SERIAL_USING_DMA
  78. #define RT_USING_PIN
  79. /* end of Device Drivers */
  80. /* C/C++ and POSIX layer */
  81. /* ISO-ANSI C layer */
  82. /* Timezone and Daylight Saving Time */
  83. #define RT_LIBC_USING_LIGHT_TZ_DST
  84. #define RT_LIBC_TZ_DEFAULT_HOUR 8
  85. #define RT_LIBC_TZ_DEFAULT_MIN 0
  86. #define RT_LIBC_TZ_DEFAULT_SEC 0
  87. /* end of Timezone and Daylight Saving Time */
  88. /* end of ISO-ANSI C layer */
  89. /* POSIX (Portable Operating System Interface) layer */
  90. /* Interprocess Communication (IPC) */
  91. /* Socket is in the 'Network' category */
  92. /* end of Interprocess Communication (IPC) */
  93. /* end of POSIX (Portable Operating System Interface) layer */
  94. /* end of C/C++ and POSIX layer */
  95. /* Network */
  96. /* end of Network */
  97. /* Memory protection */
  98. /* end of Memory protection */
  99. /* Utilities */
  100. /* end of Utilities */
  101. /* Using USB legacy version */
  102. /* end of Using USB legacy version */
  103. /* end of RT-Thread Components */
  104. /* RT-Thread Utestcases */
  105. /* end of RT-Thread Utestcases */
  106. /* RT-Thread online packages */
  107. /* IoT - internet of things */
  108. /* Wi-Fi */
  109. /* Marvell WiFi */
  110. /* end of Marvell WiFi */
  111. /* Wiced WiFi */
  112. /* end of Wiced WiFi */
  113. /* CYW43012 WiFi */
  114. /* end of CYW43012 WiFi */
  115. /* BL808 WiFi */
  116. /* end of BL808 WiFi */
  117. /* CYW43439 WiFi */
  118. /* end of CYW43439 WiFi */
  119. /* end of Wi-Fi */
  120. /* IoT Cloud */
  121. /* end of IoT Cloud */
  122. /* end of IoT - internet of things */
  123. /* security packages */
  124. /* end of security packages */
  125. /* language packages */
  126. /* JSON: JavaScript Object Notation, a lightweight data-interchange format */
  127. /* end of JSON: JavaScript Object Notation, a lightweight data-interchange format */
  128. /* XML: Extensible Markup Language */
  129. /* end of XML: Extensible Markup Language */
  130. /* end of language packages */
  131. /* multimedia packages */
  132. /* LVGL: powerful and easy-to-use embedded GUI library */
  133. /* end of LVGL: powerful and easy-to-use embedded GUI library */
  134. /* u8g2: a monochrome graphic library */
  135. /* end of u8g2: a monochrome graphic library */
  136. /* end of multimedia packages */
  137. /* tools packages */
  138. /* end of tools packages */
  139. /* system packages */
  140. /* enhanced kernel services */
  141. /* end of enhanced kernel services */
  142. /* acceleration: Assembly language or algorithmic acceleration packages */
  143. /* end of acceleration: Assembly language or algorithmic acceleration packages */
  144. /* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  145. /* end of CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  146. /* Micrium: Micrium software products porting for RT-Thread */
  147. /* end of Micrium: Micrium software products porting for RT-Thread */
  148. /* end of system packages */
  149. /* peripheral libraries and drivers */
  150. /* HAL & SDK Drivers */
  151. /* STM32 HAL & SDK Drivers */
  152. /* end of STM32 HAL & SDK Drivers */
  153. /* Infineon HAL Packages */
  154. /* end of Infineon HAL Packages */
  155. /* Kendryte SDK */
  156. /* end of Kendryte SDK */
  157. /* end of HAL & SDK Drivers */
  158. /* sensors drivers */
  159. /* end of sensors drivers */
  160. /* touch drivers */
  161. /* end of touch drivers */
  162. /* end of peripheral libraries and drivers */
  163. /* AI packages */
  164. /* end of AI packages */
  165. /* Signal Processing and Control Algorithm Packages */
  166. /* end of Signal Processing and Control Algorithm Packages */
  167. /* miscellaneous packages */
  168. /* project laboratory */
  169. /* end of project laboratory */
  170. /* samples: kernel and components samples */
  171. /* end of samples: kernel and components samples */
  172. /* entertainment: terminal games and other interesting software packages */
  173. /* end of entertainment: terminal games and other interesting software packages */
  174. /* end of miscellaneous packages */
  175. /* Arduino libraries */
  176. /* Projects and Demos */
  177. /* end of Projects and Demos */
  178. /* Sensors */
  179. /* end of Sensors */
  180. /* Display */
  181. /* end of Display */
  182. /* Timing */
  183. /* end of Timing */
  184. /* Data Processing */
  185. /* end of Data Processing */
  186. /* Data Storage */
  187. /* Communication */
  188. /* end of Communication */
  189. /* Device Control */
  190. /* end of Device Control */
  191. /* Other */
  192. /* end of Other */
  193. /* Signal IO */
  194. /* end of Signal IO */
  195. /* Uncategorized */
  196. /* end of Arduino libraries */
  197. /* end of RT-Thread online packages */
  198. #define SOC_FAMILY_RENESAS
  199. #define SOC_SERIES_R9A07G0
  200. /* Hardware Drivers Config */
  201. #define SOC_R9A07G084
  202. /* Onboard Peripheral Drivers */
  203. /* end of Onboard Peripheral Drivers */
  204. /* On-chip Peripheral Drivers */
  205. #define BSP_USING_GPIO
  206. #define BSP_USING_UART
  207. #define BSP_USING_UART0
  208. #define BSP_UART0_RX_BUFSIZE 256
  209. #define BSP_UART0_TX_BUFSIZE 0
  210. /* end of On-chip Peripheral Drivers */
  211. /* Board extended module Drivers */
  212. /* end of Board extended module Drivers */
  213. /* end of Hardware Drivers Config */
  214. #endif