rtconfig.h 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. #ifndef RT_CONFIG_H__
  2. #define RT_CONFIG_H__
  3. /* Generated by Kconfiglib (https://github.com/ulfalizer/Kconfiglib) */
  4. /* Hardware Drivers Config */
  5. #define SOC_NRF52840
  6. #define SOC_NORDIC
  7. #define BSP_BOARD_PCA_10056
  8. /* Onboard Peripheral Drivers */
  9. #define BSP_USING_JLINK_TO_USART
  10. #define RT_BSP_LED_PIN 13
  11. /* end of Onboard Peripheral Drivers */
  12. /* On-chip Peripheral Drivers */
  13. #define BSP_USING_GPIO
  14. #define BSP_USING_UART
  15. #define NRFX_USING_UART
  16. #define BSP_USING_UART0
  17. #define BSP_UART0_RX_PIN 8
  18. #define BSP_UART0_TX_PIN 6
  19. /* MCU flash config */
  20. #define MCU_FLASH_START_ADDRESS 0x00000000
  21. #define MCU_FLASH_SIZE_KB 1024
  22. #define MCU_SRAM_START_ADDRESS 0x20000000
  23. #define MCU_SRAM_SIZE_KB 256
  24. #define MCU_FLASH_PAGE_SIZE 0x1000
  25. /* end of MCU flash config */
  26. /* end of On-chip Peripheral Drivers */
  27. #define BLE_STACK_USING_NULL
  28. #define NRFX_CLOCK_ENABLED 1
  29. #define NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY 7
  30. #define NRFX_CLOCK_CONFIG_LF_SRC 1
  31. #define NRFX_UART_ENABLED 1
  32. #define NRFX_UART0_ENABLED 1
  33. #define NRFX_GPIOTE_ENABLED 1
  34. /* end of Hardware Drivers Config */
  35. /* RT-Thread Kernel */
  36. #define RT_NAME_MAX 8
  37. #define RT_ALIGN_SIZE 4
  38. #define RT_THREAD_PRIORITY_32
  39. #define RT_THREAD_PRIORITY_MAX 32
  40. #define RT_TICK_PER_SECOND 100
  41. #define RT_USING_HOOK
  42. #define RT_USING_IDLE_HOOK
  43. #define RT_IDLE_HOOK_LIST_SIZE 4
  44. #define IDLE_THREAD_STACK_SIZE 256
  45. #define RT_USING_TIMER_SOFT
  46. #define RT_TIMER_THREAD_PRIO 4
  47. #define RT_TIMER_THREAD_STACK_SIZE 512
  48. /* kservice optimization */
  49. /* end of kservice optimization */
  50. /* Inter-Thread communication */
  51. #define RT_USING_SEMAPHORE
  52. #define RT_USING_MUTEX
  53. #define RT_USING_EVENT
  54. /* end of Inter-Thread communication */
  55. /* Memory Management */
  56. #define RT_USING_MEMPOOL
  57. #define RT_USING_SMALL_MEM
  58. #define RT_USING_HEAP
  59. /* end of Memory Management */
  60. /* Kernel Device Object */
  61. #define RT_USING_DEVICE
  62. #define RT_USING_CONSOLE
  63. #define RT_CONSOLEBUF_SIZE 128
  64. #define RT_CONSOLE_DEVICE_NAME "uart0"
  65. /* end of Kernel Device Object */
  66. #define RT_VER_NUM 0x40004
  67. /* end of RT-Thread Kernel */
  68. /* RT-Thread Components */
  69. #define RT_USING_COMPONENTS_INIT
  70. #define RT_USING_USER_MAIN
  71. #define RT_MAIN_THREAD_STACK_SIZE 2048
  72. #define RT_MAIN_THREAD_PRIORITY 10
  73. /* C++ features */
  74. /* end of C++ features */
  75. /* Command shell */
  76. #define RT_USING_FINSH
  77. #define RT_USING_MSH
  78. #define FINSH_USING_MSH
  79. #define FINSH_THREAD_NAME "tshell"
  80. #define FINSH_THREAD_PRIORITY 20
  81. #define FINSH_THREAD_STACK_SIZE 4096
  82. #define FINSH_USING_HISTORY
  83. #define FINSH_HISTORY_LINES 5
  84. #define FINSH_USING_SYMTAB
  85. #define FINSH_CMD_SIZE 80
  86. #define MSH_USING_BUILT_IN_COMMANDS
  87. #define FINSH_USING_DESCRIPTION
  88. #define FINSH_ARG_MAX 10
  89. /* end of Command shell */
  90. /* Device virtual file system */
  91. /* end of Device virtual file system */
  92. /* Device Drivers */
  93. #define RT_USING_DEVICE_IPC
  94. #define RT_PIPE_BUFSZ 512
  95. #define RT_USING_SERIAL
  96. #define RT_USING_SERIAL_V1
  97. #define RT_SERIAL_RB_BUFSZ 64
  98. #define RT_USING_PIN
  99. /* Using USB */
  100. /* end of Using USB */
  101. /* end of Device Drivers */
  102. /* POSIX layer and C standard library */
  103. /* end of POSIX layer and C standard library */
  104. /* Network */
  105. /* Socket abstraction layer */
  106. /* end of Socket abstraction layer */
  107. /* Network interface device */
  108. /* end of Network interface device */
  109. /* light weight TCP/IP stack */
  110. /* end of light weight TCP/IP stack */
  111. /* AT commands */
  112. /* end of AT commands */
  113. /* end of Network */
  114. /* VBUS(Virtual Software BUS) */
  115. /* end of VBUS(Virtual Software BUS) */
  116. /* Utilities */
  117. /* end of Utilities */
  118. /* end of RT-Thread Components */
  119. /* RT-Thread Utestcases */
  120. /* end of RT-Thread Utestcases */
  121. /* RT-Thread online packages */
  122. /* IoT - internet of things */
  123. /* Wi-Fi */
  124. /* Marvell WiFi */
  125. /* end of Marvell WiFi */
  126. /* Wiced WiFi */
  127. /* end of Wiced WiFi */
  128. /* end of Wi-Fi */
  129. /* IoT Cloud */
  130. /* end of IoT Cloud */
  131. /* end of IoT - internet of things */
  132. /* security packages */
  133. /* end of security packages */
  134. /* language packages */
  135. /* end of language packages */
  136. /* multimedia packages */
  137. /* lvgl: powerful and easy-to-use embedded GUI library */
  138. /* end of lvgl: powerful and easy-to-use embedded GUI library */
  139. /* u8g2: a monochrome graphic library */
  140. /* end of u8g2: a monochrome graphic library */
  141. /* end of multimedia packages */
  142. /* tools packages */
  143. /* end of tools packages */
  144. /* system packages */
  145. /* acceleration: Assembly language or algorithmic acceleration packages */
  146. /* end of acceleration: Assembly language or algorithmic acceleration packages */
  147. /* Micrium: Micrium software products porting for RT-Thread */
  148. /* end of Micrium: Micrium software products porting for RT-Thread */
  149. /* end of system packages */
  150. /* peripheral libraries and drivers */
  151. #define PKG_USING_NRFX
  152. #define PKG_USING_NRFX_LATEST_VERSION
  153. /* end of peripheral libraries and drivers */
  154. /* AI packages */
  155. /* end of AI packages */
  156. /* miscellaneous packages */
  157. /* samples: kernel and components samples */
  158. /* end of samples: kernel and components samples */
  159. /* entertainment: terminal games and other interesting software packages */
  160. /* end of entertainment: terminal games and other interesting software packages */
  161. /* end of miscellaneous packages */
  162. /* end of RT-Thread online packages */
  163. #endif