rtconfig.h 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  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_ALIGN_SIZE 8
  40. #define RT_THREAD_PRIORITY_32
  41. #define RT_THREAD_PRIORITY_MAX 32
  42. #define RT_TICK_PER_SECOND 100
  43. #define RT_USING_HOOK
  44. #define RT_HOOK_USING_FUNC_PTR
  45. #define RT_USING_IDLE_HOOK
  46. #define RT_IDLE_HOOK_LIST_SIZE 4
  47. #define IDLE_THREAD_STACK_SIZE 512
  48. #define RT_USING_TIMER_SOFT
  49. #define RT_TIMER_THREAD_PRIO 4
  50. #define RT_TIMER_THREAD_STACK_SIZE 512
  51. /* kservice optimization */
  52. /* Inter-Thread communication */
  53. #define RT_USING_SEMAPHORE
  54. #define RT_USING_MUTEX
  55. #define RT_USING_EVENT
  56. #define RT_USING_MESSAGEQUEUE
  57. /* Memory Management */
  58. #define RT_PAGE_MAX_ORDER 11
  59. #define RT_USING_MEMPOOL
  60. #define RT_USING_SMALL_MEM
  61. #define RT_USING_SMALL_MEM_AS_HEAP
  62. #define RT_USING_HEAP
  63. /* Kernel Device Object */
  64. #define RT_USING_DEVICE
  65. #define RT_USING_CONSOLE
  66. #define RT_CONSOLEBUF_SIZE 128
  67. #define RT_CONSOLE_DEVICE_NAME "uart0"
  68. #define RT_VER_NUM 0x50000
  69. /* RT-Thread Components */
  70. #define RT_USING_COMPONENTS_INIT
  71. #define RT_USING_USER_MAIN
  72. #define RT_MAIN_THREAD_STACK_SIZE 2048
  73. #define RT_MAIN_THREAD_PRIORITY 10
  74. #define RT_USING_MSH
  75. #define RT_USING_FINSH
  76. #define FINSH_USING_MSH
  77. #define FINSH_THREAD_NAME "tshell"
  78. #define FINSH_THREAD_PRIORITY 20
  79. #define FINSH_THREAD_STACK_SIZE 4096
  80. #define FINSH_USING_HISTORY
  81. #define FINSH_HISTORY_LINES 5
  82. #define FINSH_USING_SYMTAB
  83. #define FINSH_CMD_SIZE 80
  84. #define MSH_USING_BUILT_IN_COMMANDS
  85. #define FINSH_USING_DESCRIPTION
  86. #define FINSH_ARG_MAX 10
  87. /* Device Drivers */
  88. #define RT_USING_DEVICE_IPC
  89. #define RT_UNAMED_PIPE_NUMBER 64
  90. #define RT_USING_SERIAL
  91. #define RT_USING_SERIAL_V1
  92. #define RT_SERIAL_USING_DMA
  93. #define RT_SERIAL_RB_BUFSZ 64
  94. #define RT_USING_HWTIMER
  95. #define RT_USING_I2C
  96. #define RT_USING_I2C_BITOPS
  97. #define RT_USING_PIN
  98. #define RT_USING_ADC
  99. #define RT_USING_PWM
  100. #define RT_USING_RTC
  101. #define RT_USING_SPI
  102. #define RT_USING_WDT
  103. /* Using USB */
  104. /* C/C++ and POSIX layer */
  105. #define RT_LIBC_DEFAULT_TIMEZONE 8
  106. /* POSIX (Portable Operating System Interface) layer */
  107. /* Interprocess Communication (IPC) */
  108. /* Socket is in the 'Network' category */
  109. /* Network */
  110. /* Utilities */
  111. /* RT-Thread Utestcases */
  112. /* RT-Thread online packages */
  113. /* IoT - internet of things */
  114. /* Wi-Fi */
  115. /* Marvell WiFi */
  116. /* Wiced WiFi */
  117. /* IoT Cloud */
  118. /* security packages */
  119. /* language packages */
  120. /* JSON: JavaScript Object Notation, a lightweight data-interchange format */
  121. /* XML: Extensible Markup Language */
  122. /* multimedia packages */
  123. /* LVGL: powerful and easy-to-use embedded GUI library */
  124. /* u8g2: a monochrome graphic library */
  125. /* tools packages */
  126. /* system packages */
  127. /* enhanced kernel services */
  128. /* acceleration: Assembly language or algorithmic acceleration packages */
  129. /* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  130. /* Micrium: Micrium software products porting for RT-Thread */
  131. /* peripheral libraries and drivers */
  132. /* sensors drivers */
  133. /* touch drivers */
  134. #define PKG_USING_NRFX
  135. #define PKG_USING_NRFX_LATEST_VERSION
  136. /* Kendryte SDK */
  137. /* AI packages */
  138. /* Signal Processing and Control Algorithm Packages */
  139. /* miscellaneous packages */
  140. /* project laboratory */
  141. /* samples: kernel and components samples */
  142. /* entertainment: terminal games and other interesting software packages */
  143. /* Arduino libraries */
  144. /* Projects */
  145. /* Sensors */
  146. /* Display */
  147. /* Timing */
  148. /* Data Processing */
  149. /* Data Storage */
  150. /* Communication */
  151. /* Device Control */
  152. /* Other */
  153. /* Signal IO */
  154. /* Uncategorized */
  155. #endif