rtconfig.h 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297
  1. #ifndef RT_CONFIG_H__
  2. #define RT_CONFIG_H__
  3. /* Automatically generated file; DO NOT EDIT. */
  4. /* RT-Thread Configuration */
  5. /* Hardware Drivers Config */
  6. #define SOC_NRF5340
  7. #define SOC_NORDIC
  8. #define BSP_BOARD_PCA_10095
  9. /* Onboard Peripheral Drivers */
  10. #define RT_BSP_LED_PIN 28
  11. /* On-chip Peripheral Drivers */
  12. #define BSP_USING_GPIO
  13. #define BSP_USING_UART
  14. #define NRFX_USING_UARTE
  15. #define BSP_USING_UART0
  16. #define BSP_UART0_RX_PIN 22
  17. #define BSP_UART0_TX_PIN 20
  18. #define NRFX_UARTE_ENABLED 1
  19. #define NRFX_UARTE0_ENABLED 1
  20. #define BSP_USING_UART1
  21. #define NRFX_UARTE1_ENABLED 1
  22. #define BSP_UART1_RX_PIN 32
  23. #define BSP_UART1_TX_PIN 33
  24. /* MCU flash config */
  25. #define MCU_FLASH_START_ADDRESS 0x00000000
  26. #define MCU_FLASH_SIZE_KB 1024
  27. #define MCU_SRAM_START_ADDRESS 0x20000000
  28. #define MCU_SRAM_SIZE_KB 512
  29. #define MCU_FLASH_PAGE_SIZE 0x1000
  30. #define BLE_STACK_USING_NULL
  31. #define NRFX_CLOCK_ENABLED 1
  32. #define NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY 7
  33. #define NRFX_CLOCK_CONFIG_LF_SRC 1
  34. #define NRFX_UART_ENABLED 1
  35. #define NRFX_UART0_ENABLED 1
  36. #define NRFX_GPIOTE_ENABLED 1
  37. /* RT-Thread Kernel */
  38. #define RT_NAME_MAX 8
  39. #define RT_CPUS_NR 1
  40. #define RT_ALIGN_SIZE 8
  41. #define RT_THREAD_PRIORITY_32
  42. #define RT_THREAD_PRIORITY_MAX 32
  43. #define RT_TICK_PER_SECOND 100
  44. #define RT_USING_HOOK
  45. #define RT_HOOK_USING_FUNC_PTR
  46. #define RT_USING_IDLE_HOOK
  47. #define RT_IDLE_HOOK_LIST_SIZE 4
  48. #define IDLE_THREAD_STACK_SIZE 512
  49. #define RT_USING_TIMER_SOFT
  50. #define RT_TIMER_THREAD_PRIO 4
  51. #define RT_TIMER_THREAD_STACK_SIZE 512
  52. /* kservice optimization */
  53. #define RT_USING_DEBUG
  54. #define RT_DEBUGING_COLOR
  55. #define RT_DEBUGING_CONTEXT
  56. /* Inter-Thread communication */
  57. #define RT_USING_SEMAPHORE
  58. #define RT_USING_MUTEX
  59. #define RT_USING_EVENT
  60. #define RT_USING_MESSAGEQUEUE
  61. /* Memory Management */
  62. #define RT_USING_MEMPOOL
  63. #define RT_USING_SMALL_MEM
  64. #define RT_USING_SMALL_MEM_AS_HEAP
  65. #define RT_USING_HEAP
  66. #define RT_USING_DEVICE
  67. #define RT_USING_CONSOLE
  68. #define RT_CONSOLEBUF_SIZE 128
  69. #define RT_CONSOLE_DEVICE_NAME "uart0"
  70. #define RT_VER_NUM 0x50100
  71. #define RT_BACKTRACE_LEVEL_MAX_NR 32
  72. /* RT-Thread Components */
  73. #define RT_USING_COMPONENTS_INIT
  74. #define RT_USING_USER_MAIN
  75. #define RT_MAIN_THREAD_STACK_SIZE 2048
  76. #define RT_MAIN_THREAD_PRIORITY 10
  77. #define RT_USING_MSH
  78. #define RT_USING_FINSH
  79. #define FINSH_USING_MSH
  80. #define FINSH_THREAD_NAME "tshell"
  81. #define FINSH_THREAD_PRIORITY 20
  82. #define FINSH_THREAD_STACK_SIZE 4096
  83. #define FINSH_USING_HISTORY
  84. #define FINSH_HISTORY_LINES 5
  85. #define FINSH_USING_SYMTAB
  86. #define FINSH_CMD_SIZE 80
  87. #define MSH_USING_BUILT_IN_COMMANDS
  88. #define FINSH_USING_DESCRIPTION
  89. #define FINSH_ARG_MAX 10
  90. #define FINSH_USING_OPTION_COMPLETION
  91. /* DFS: device virtual file system */
  92. /* Device Drivers */
  93. #define RT_USING_DEVICE_IPC
  94. #define RT_UNAMED_PIPE_NUMBER 64
  95. #define RT_USING_SERIAL
  96. #define RT_USING_SERIAL_V1
  97. #define RT_SERIAL_USING_DMA
  98. #define RT_SERIAL_RB_BUFSZ 64
  99. #define RT_USING_I2C
  100. #define RT_USING_I2C_BITOPS
  101. #define RT_USING_ADC
  102. #define RT_USING_PWM
  103. #define RT_USING_RTC
  104. #define RT_USING_SPI
  105. #define RT_USING_WDT
  106. #define RT_USING_PIN
  107. #define RT_USING_HWTIMER
  108. /* Using USB */
  109. /* C/C++ and POSIX layer */
  110. /* ISO-ANSI C layer */
  111. /* Timezone and Daylight Saving Time */
  112. #define RT_LIBC_USING_LIGHT_TZ_DST
  113. #define RT_LIBC_TZ_DEFAULT_HOUR 8
  114. #define RT_LIBC_TZ_DEFAULT_MIN 0
  115. #define RT_LIBC_TZ_DEFAULT_SEC 0
  116. /* POSIX (Portable Operating System Interface) layer */
  117. /* Interprocess Communication (IPC) */
  118. /* Socket is in the 'Network' category */
  119. /* Network */
  120. /* Memory protection */
  121. /* Utilities */
  122. /* RT-Thread Utestcases */
  123. /* RT-Thread online packages */
  124. /* IoT - internet of things */
  125. /* Wi-Fi */
  126. /* Marvell WiFi */
  127. /* Wiced WiFi */
  128. /* CYW43012 WiFi */
  129. /* BL808 WiFi */
  130. /* CYW43439 WiFi */
  131. /* IoT Cloud */
  132. /* security packages */
  133. /* language packages */
  134. /* JSON: JavaScript Object Notation, a lightweight data-interchange format */
  135. /* XML: Extensible Markup Language */
  136. /* multimedia packages */
  137. /* LVGL: powerful and easy-to-use embedded GUI library */
  138. /* u8g2: a monochrome graphic library */
  139. /* tools packages */
  140. /* system packages */
  141. /* enhanced kernel services */
  142. /* acceleration: Assembly language or algorithmic acceleration packages */
  143. /* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  144. /* Micrium: Micrium software products porting for RT-Thread */
  145. /* peripheral libraries and drivers */
  146. /* HAL & SDK Drivers */
  147. /* STM32 HAL & SDK Drivers */
  148. /* Kendryte SDK */
  149. #define PKG_USING_NRFX
  150. #define PKG_USING_NRFX_LATEST_VERSION
  151. /* sensors drivers */
  152. /* touch drivers */
  153. /* AI packages */
  154. /* Signal Processing and Control Algorithm Packages */
  155. /* miscellaneous packages */
  156. /* project laboratory */
  157. /* samples: kernel and components samples */
  158. /* entertainment: terminal games and other interesting software packages */
  159. /* Arduino libraries */
  160. /* Projects and Demos */
  161. /* Sensors */
  162. /* Display */
  163. /* Timing */
  164. /* Data Processing */
  165. /* Data Storage */
  166. /* Communication */
  167. /* Device Control */
  168. /* Other */
  169. /* Signal IO */
  170. /* Uncategorized */
  171. #endif