rtconfig.h 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439
  1. #ifndef RT_CONFIG_H__
  2. #define RT_CONFIG_H__
  3. /* Hardware Drivers Config */
  4. #define SOC_NRF5340
  5. #define SOC_NORDIC
  6. #define BSP_BOARD_PCA_10095
  7. /* Onboard Peripheral Drivers */
  8. #define RT_BSP_LED_PIN 28
  9. /* end of Onboard Peripheral Drivers */
  10. /* On-chip Peripheral Drivers */
  11. #define BSP_USING_GPIO
  12. #define BSP_USING_UART
  13. #define NRFX_USING_UARTE
  14. #define BSP_USING_UART0
  15. #define BSP_UART0_RX_PIN 22
  16. #define BSP_UART0_TX_PIN 20
  17. #define NRFX_UARTE_ENABLED 1
  18. #define NRFX_UARTE0_ENABLED 1
  19. #define BSP_USING_UART1
  20. #define NRFX_UARTE1_ENABLED 1
  21. #define BSP_UART1_RX_PIN 32
  22. #define BSP_UART1_TX_PIN 33
  23. /* MCU flash config */
  24. #define MCU_FLASH_START_ADDRESS 0x00000000
  25. #define MCU_FLASH_SIZE_KB 1024
  26. #define MCU_SRAM_START_ADDRESS 0x20000000
  27. #define MCU_SRAM_SIZE_KB 512
  28. #define MCU_FLASH_PAGE_SIZE 0x1000
  29. /* end of MCU flash config */
  30. /* end of On-chip Peripheral Drivers */
  31. #define BLE_STACK_USING_NULL
  32. #define NRFX_CLOCK_ENABLED 1
  33. #define NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY 7
  34. #define NRFX_CLOCK_CONFIG_LF_SRC 1
  35. #define NRFX_UART_ENABLED 1
  36. #define NRFX_UART0_ENABLED 1
  37. #define NRFX_GPIOTE_ENABLED 1
  38. /* end of Hardware Drivers Config */
  39. /* RT-Thread Kernel */
  40. /* klibc options */
  41. /* rt_vsnprintf options */
  42. /* end of rt_vsnprintf options */
  43. /* rt_vsscanf options */
  44. /* end of rt_vsscanf options */
  45. /* rt_memset options */
  46. /* end of rt_memset options */
  47. /* rt_memcpy options */
  48. /* end of rt_memcpy options */
  49. /* rt_memmove options */
  50. /* end of rt_memmove options */
  51. /* rt_memcmp options */
  52. /* end of rt_memcmp options */
  53. /* rt_strstr options */
  54. /* end of rt_strstr options */
  55. /* rt_strcasecmp options */
  56. /* end of rt_strcasecmp options */
  57. /* rt_strncpy options */
  58. /* end of rt_strncpy options */
  59. /* rt_strcpy options */
  60. /* end of rt_strcpy options */
  61. /* rt_strncmp options */
  62. /* end of rt_strncmp options */
  63. /* rt_strcmp options */
  64. /* end of rt_strcmp options */
  65. /* rt_strlen options */
  66. /* end of rt_strlen options */
  67. /* rt_strnlen options */
  68. /* end of rt_strnlen options */
  69. /* end of klibc options */
  70. #define RT_NAME_MAX 12
  71. #define RT_CPUS_NR 1
  72. #define RT_ALIGN_SIZE 8
  73. #define RT_THREAD_PRIORITY_32
  74. #define RT_THREAD_PRIORITY_MAX 32
  75. #define RT_TICK_PER_SECOND 100
  76. #define RT_USING_HOOK
  77. #define RT_HOOK_USING_FUNC_PTR
  78. #define RT_USING_IDLE_HOOK
  79. #define RT_IDLE_HOOK_LIST_SIZE 4
  80. #define IDLE_THREAD_STACK_SIZE 512
  81. #define RT_USING_TIMER_SOFT
  82. #define RT_TIMER_THREAD_PRIO 4
  83. #define RT_TIMER_THREAD_STACK_SIZE 512
  84. /* kservice options */
  85. /* end of kservice options */
  86. #define RT_USING_DEBUG
  87. #define RT_DEBUGING_ASSERT
  88. #define RT_DEBUGING_COLOR
  89. #define RT_DEBUGING_CONTEXT
  90. /* Inter-Thread communication */
  91. #define RT_USING_SEMAPHORE
  92. #define RT_USING_MUTEX
  93. #define RT_USING_EVENT
  94. #define RT_USING_MESSAGEQUEUE
  95. /* end of Inter-Thread communication */
  96. /* Memory Management */
  97. #define RT_USING_MEMPOOL
  98. #define RT_USING_SMALL_MEM
  99. #define RT_USING_SMALL_MEM_AS_HEAP
  100. #define RT_USING_HEAP
  101. /* end of Memory Management */
  102. #define RT_USING_DEVICE
  103. #define RT_USING_CONSOLE
  104. #define RT_CONSOLEBUF_SIZE 128
  105. #define RT_CONSOLE_DEVICE_NAME "uart0"
  106. #define RT_VER_NUM 0x50201
  107. #define RT_BACKTRACE_LEVEL_MAX_NR 32
  108. /* end of RT-Thread Kernel */
  109. /* RT-Thread Components */
  110. #define RT_USING_COMPONENTS_INIT
  111. #define RT_USING_USER_MAIN
  112. #define RT_MAIN_THREAD_STACK_SIZE 2048
  113. #define RT_MAIN_THREAD_PRIORITY 10
  114. #define RT_USING_MSH
  115. #define RT_USING_FINSH
  116. #define FINSH_USING_MSH
  117. #define FINSH_THREAD_NAME "tshell"
  118. #define FINSH_THREAD_PRIORITY 20
  119. #define FINSH_THREAD_STACK_SIZE 4096
  120. #define FINSH_USING_HISTORY
  121. #define FINSH_HISTORY_LINES 5
  122. #define FINSH_USING_SYMTAB
  123. #define FINSH_CMD_SIZE 80
  124. #define MSH_USING_BUILT_IN_COMMANDS
  125. #define FINSH_USING_DESCRIPTION
  126. #define FINSH_ARG_MAX 10
  127. #define FINSH_USING_OPTION_COMPLETION
  128. /* DFS: device virtual file system */
  129. /* end of DFS: device virtual file system */
  130. /* Device Drivers */
  131. #define RT_USING_DEVICE_IPC
  132. #define RT_UNAMED_PIPE_NUMBER 64
  133. #define RT_USING_SERIAL
  134. #define RT_USING_SERIAL_V1
  135. #define RT_SERIAL_USING_DMA
  136. #define RT_SERIAL_RB_BUFSZ 64
  137. #define RT_USING_PIN
  138. /* end of Device Drivers */
  139. /* C/C++ and POSIX layer */
  140. /* ISO-ANSI C layer */
  141. /* Timezone and Daylight Saving Time */
  142. #define RT_LIBC_USING_LIGHT_TZ_DST
  143. #define RT_LIBC_TZ_DEFAULT_HOUR 8
  144. #define RT_LIBC_TZ_DEFAULT_MIN 0
  145. #define RT_LIBC_TZ_DEFAULT_SEC 0
  146. /* end of Timezone and Daylight Saving Time */
  147. /* end of ISO-ANSI C layer */
  148. /* POSIX (Portable Operating System Interface) layer */
  149. /* Interprocess Communication (IPC) */
  150. /* Socket is in the 'Network' category */
  151. /* end of Interprocess Communication (IPC) */
  152. /* end of POSIX (Portable Operating System Interface) layer */
  153. /* end of C/C++ and POSIX layer */
  154. /* Network */
  155. /* end of Network */
  156. /* Memory protection */
  157. /* end of Memory protection */
  158. /* Utilities */
  159. /* end of Utilities */
  160. /* Using USB legacy version */
  161. /* end of Using USB legacy version */
  162. /* end of RT-Thread Components */
  163. /* RT-Thread Utestcases */
  164. /* end of RT-Thread Utestcases */
  165. /* RT-Thread online packages */
  166. /* IoT - internet of things */
  167. /* Wi-Fi */
  168. /* Marvell WiFi */
  169. /* end of Marvell WiFi */
  170. /* Wiced WiFi */
  171. /* end of Wiced WiFi */
  172. /* CYW43012 WiFi */
  173. /* end of CYW43012 WiFi */
  174. /* BL808 WiFi */
  175. /* end of BL808 WiFi */
  176. /* CYW43439 WiFi */
  177. /* end of CYW43439 WiFi */
  178. /* end of Wi-Fi */
  179. /* IoT Cloud */
  180. /* end of IoT Cloud */
  181. /* end of IoT - internet of things */
  182. /* security packages */
  183. /* end of security packages */
  184. /* language packages */
  185. /* JSON: JavaScript Object Notation, a lightweight data-interchange format */
  186. /* end of JSON: JavaScript Object Notation, a lightweight data-interchange format */
  187. /* XML: Extensible Markup Language */
  188. /* end of XML: Extensible Markup Language */
  189. /* end of language packages */
  190. /* multimedia packages */
  191. /* LVGL: powerful and easy-to-use embedded GUI library */
  192. /* end of LVGL: powerful and easy-to-use embedded GUI library */
  193. /* u8g2: a monochrome graphic library */
  194. /* end of u8g2: a monochrome graphic library */
  195. /* end of multimedia packages */
  196. /* tools packages */
  197. /* end of tools packages */
  198. /* system packages */
  199. /* enhanced kernel services */
  200. /* end of enhanced kernel services */
  201. /* acceleration: Assembly language or algorithmic acceleration packages */
  202. /* end of acceleration: Assembly language or algorithmic acceleration packages */
  203. /* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  204. /* end of CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  205. /* Micrium: Micrium software products porting for RT-Thread */
  206. /* end of Micrium: Micrium software products porting for RT-Thread */
  207. /* end of system packages */
  208. /* peripheral libraries and drivers */
  209. /* HAL & SDK Drivers */
  210. /* STM32 HAL & SDK Drivers */
  211. /* end of STM32 HAL & SDK Drivers */
  212. /* Infineon HAL Packages */
  213. /* end of Infineon HAL Packages */
  214. /* Kendryte SDK */
  215. /* end of Kendryte SDK */
  216. #define PKG_USING_NRFX
  217. #define PKG_USING_NRFX_LATEST_VERSION
  218. /* WCH HAL & SDK Drivers */
  219. /* end of WCH HAL & SDK Drivers */
  220. /* AT32 HAL & SDK Drivers */
  221. /* end of AT32 HAL & SDK Drivers */
  222. /* HC32 DDL Drivers */
  223. /* end of HC32 DDL Drivers */
  224. /* NXP HAL & SDK Drivers */
  225. /* end of NXP HAL & SDK Drivers */
  226. /* NUVOTON Drivers */
  227. /* end of NUVOTON Drivers */
  228. /* GD32 Drivers */
  229. /* end of GD32 Drivers */
  230. /* end of HAL & SDK Drivers */
  231. /* sensors drivers */
  232. /* end of sensors drivers */
  233. /* touch drivers */
  234. /* end of touch drivers */
  235. /* end of peripheral libraries and drivers */
  236. /* AI packages */
  237. /* end of AI packages */
  238. /* Signal Processing and Control Algorithm Packages */
  239. /* end of Signal Processing and Control Algorithm Packages */
  240. /* miscellaneous packages */
  241. /* project laboratory */
  242. /* end of project laboratory */
  243. /* samples: kernel and components samples */
  244. /* end of samples: kernel and components samples */
  245. /* entertainment: terminal games and other interesting software packages */
  246. /* end of entertainment: terminal games and other interesting software packages */
  247. /* end of miscellaneous packages */
  248. /* Arduino libraries */
  249. /* Projects and Demos */
  250. /* end of Projects and Demos */
  251. /* Sensors */
  252. /* end of Sensors */
  253. /* Display */
  254. /* end of Display */
  255. /* Timing */
  256. /* end of Timing */
  257. /* Data Processing */
  258. /* end of Data Processing */
  259. /* Data Storage */
  260. /* Communication */
  261. /* end of Communication */
  262. /* Device Control */
  263. /* end of Device Control */
  264. /* Other */
  265. /* end of Other */
  266. /* Signal IO */
  267. /* end of Signal IO */
  268. /* Uncategorized */
  269. /* end of Arduino libraries */
  270. /* end of RT-Thread online packages */
  271. #endif