Kconfig 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. menu "Hardware Drivers Config"
  2. config SOC_NRF52833
  3. bool
  4. select RT_USING_COMPONENTS_INIT
  5. select RT_USING_USER_MAIN
  6. default y
  7. config SOC_NORDIC
  8. bool
  9. default y
  10. choice
  11. prompt "Select BSP board "
  12. default BSP_BOARD_PCA_10100
  13. config BSP_BOARD_PCA_10100
  14. bool "NRF52833 pca10100"
  15. endchoice
  16. menu "On-chip Peripheral Drivers"
  17. config BSP_USING_UART
  18. bool "Enable UART"
  19. default y
  20. select RT_USING_SERIAL
  21. config BSP_USING_UART0
  22. bool "Enable UART0"
  23. default y
  24. depends on BSP_USING_UART
  25. config BSP_UART0_RX_PIN
  26. depends on BSP_USING_UART0
  27. int "uart0 rx pin number"
  28. default 8 if BSP_BOARD_PCA_10100
  29. config BSP_UART0_TX_PIN
  30. depends on BSP_USING_UART0
  31. int "uart0 tx pin number"
  32. default 6 if BSP_BOARD_PCA_10100
  33. menu "On-chip flash config"
  34. config MCU_FLASH_START_ADDRESS
  35. hex "MCU FLASH START ADDRESS"
  36. default 0x00000000
  37. config MCU_FLASH_SIZE_KB
  38. int "MCU FLASH SIZE, MAX size 1024 KB"
  39. default 1024
  40. config MCU_SRAM_START_ADDRESS
  41. hex "MCU RAM START ADDRESS"
  42. default 0x20000000
  43. config MCU_SRAM_SIZE_KB
  44. int "MCU RAM SIZE"
  45. default 256
  46. config MCU_FLASH_PAGE_SIZE
  47. hex "MCU FLASH PAGE SIZE, please not change,nrfx default is 0x1000"
  48. default 0x1000
  49. endmenu
  50. endmenu
  51. if SOC_NORDIC
  52. config NRFX_CLOCK_ENABLED
  53. int
  54. default 1
  55. config NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY
  56. int
  57. default 7
  58. config NRFX_CLOCK_CONFIG_LF_SRC
  59. int
  60. default 1
  61. endif
  62. if BSP_USING_UART
  63. config NRFX_USING_UART
  64. bool
  65. default y
  66. config NRFX_UART_ENABLED
  67. int
  68. default 1
  69. config NRFX_UART0_ENABLED
  70. int
  71. default 1
  72. depends on BSP_USING_UART0
  73. endif
  74. choice
  75. prompt "BLE STACK"
  76. default BLE_STACK_USING_NULL
  77. help
  78. Select the ble stack
  79. config BLE_STACK_USING_NULL
  80. bool "not use the ble stack"
  81. config BSP_USING_SOFTDEVICE
  82. select PKG_USING_NRF5X_SDK
  83. bool "Nordic softdevice(perpheral)"
  84. config BSP_USING_NIMBLE
  85. select PKG_USING_NIMBLE
  86. select PKG_NIMBLE_BSP_NRF52840
  87. bool "use nimble stack(iot)"
  88. endchoice
  89. endmenu