Kconfig 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. menu "Hardware Drivers Config"
  2. config SOC_NRF52840
  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_10056
  13. config BSP_BOARD_PCA_10056
  14. bool "NRF52840 pca10056 "
  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_10056
  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_10056
  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. endmenu