Kconfig 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. menu "Hardware Drivers Config"
  2. config SOC_NRF51822
  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_MICROBIT_1_5
  13. config BSP_BOARD_MICROBIT_1_5
  14. bool "microbit nrf51822 v1.5"
  15. config BSP_BOARD_MICROBIT_1_0
  16. bool "microbit nrf51822 v1.0"
  17. endchoice
  18. menu "On-chip Peripheral Drivers"
  19. config BSP_USING_UART
  20. bool "Enable UART"
  21. default y
  22. select RT_USING_SERIAL
  23. config BSP_USING_UART0
  24. bool "Enable UART0"
  25. default y
  26. depends on BSP_USING_UART
  27. config BSP_UART0_RX_PIN
  28. depends on BSP_USING_UART0
  29. int "uart0 rx pin number"
  30. default 25 if BSP_BOARD_MICROBIT_1_5
  31. default 8 if BSP_BOARD_MICROBIT_1_0
  32. config BSP_UART0_TX_PIN
  33. depends on BSP_USING_UART0
  34. int "uart0 tx pin number"
  35. default 24 if BSP_BOARD_MICROBIT_1_5
  36. default 9 if BSP_BOARD_MICROBIT_1_0
  37. menu "On-chip flash config"
  38. config MCU_FLASH_START_ADDRESS
  39. hex "MCU FLASH START ADDRESS"
  40. default 0x00000000
  41. config MCU_FLASH_SIZE_KB
  42. int "MCU FLASH SIZE, MAX size 1024 KB"
  43. default 1024
  44. config MCU_SRAM_START_ADDRESS
  45. hex "MCU RAM START ADDRESS"
  46. default 0x20000000
  47. config MCU_SRAM_SIZE_KB
  48. int "MCU RAM SIZE"
  49. default 16
  50. config MCU_FLASH_PAGE_SIZE
  51. hex "MCU FLASH PAGE SIZE, please not change,nrfx default is 0x1000"
  52. default 0x1000
  53. endmenu
  54. endmenu
  55. if SOC_NORDIC
  56. config NRFX_CLOCK_ENABLED
  57. int
  58. default 1
  59. config NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY
  60. int
  61. default 7
  62. config NRFX_CLOCK_CONFIG_LF_SRC
  63. int
  64. default 1
  65. endif
  66. if BSP_USING_UART
  67. config NRFX_USING_UART
  68. bool
  69. default y
  70. config NRFX_UART_ENABLED
  71. int
  72. default 1
  73. config NRFX_UART0_ENABLED
  74. int
  75. default 1
  76. depends on BSP_USING_UART0
  77. endif
  78. endmenu