menu "Hardware Drivers Config" config SOC_NRF51822 bool select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN default y config SOC_NORDIC bool default y choice prompt "Select BSP board " default BSP_BOARD_MICROBIT_1_5 config BSP_BOARD_MICROBIT_1_5 bool "microbit nrf51822 v1.5" config BSP_BOARD_MICROBIT_1_0 bool "microbit nrf51822 v1.0" endchoice menu "On-chip Peripheral Drivers" config BSP_USING_UART bool "Enable UART" default y select RT_USING_SERIAL config BSP_USING_UART0 bool "Enable UART0" default y depends on BSP_USING_UART config BSP_UART0_RX_PIN depends on BSP_USING_UART0 int "uart0 rx pin number" default 25 if BSP_BOARD_MICROBIT_1_5 default 8 if BSP_BOARD_MICROBIT_1_0 config BSP_UART0_TX_PIN depends on BSP_USING_UART0 int "uart0 tx pin number" default 24 if BSP_BOARD_MICROBIT_1_5 default 9 if BSP_BOARD_MICROBIT_1_0 menu "On-chip flash config" config MCU_FLASH_START_ADDRESS hex "MCU FLASH START ADDRESS" default 0x00000000 config MCU_FLASH_SIZE_KB int "MCU FLASH SIZE, MAX size 1024 KB" default 1024 config MCU_SRAM_START_ADDRESS hex "MCU RAM START ADDRESS" default 0x20000000 config MCU_SRAM_SIZE_KB int "MCU RAM SIZE" default 16 config MCU_FLASH_PAGE_SIZE hex "MCU FLASH PAGE SIZE, please not change,nrfx default is 0x1000" default 0x1000 endmenu endmenu if SOC_NORDIC config NRFX_CLOCK_ENABLED int default 1 config NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY int default 7 config NRFX_CLOCK_CONFIG_LF_SRC int default 1 endif if BSP_USING_UART config NRFX_USING_UART bool default y config NRFX_UART_ENABLED int default 1 config NRFX_UART0_ENABLED int default 1 depends on BSP_USING_UART0 endif endmenu