rt-thread-official/bsp/nrf5x/nrf51822/board/Kconfig

102 lines
2.2 KiB
Plaintext
Raw Normal View History

2021-04-11 12:24:47 +08:00
menu "Hardware Drivers Config"
config SOC_NRF51822
bool
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
2023-01-09 10:14:23 +08:00
2021-04-11 12:24:47 +08:00
config SOC_NORDIC
2023-01-09 10:14:23 +08:00
bool
2021-04-11 12:24:47 +08:00
default y
choice
prompt "Select BSP board "
default BSP_BOARD_MICROBIT_1_5
config BSP_BOARD_MICROBIT_1_5
bool "microbit nrf51822 v1.5"
2023-01-09 10:14:23 +08:00
2021-04-11 12:24:47 +08:00
config BSP_BOARD_MICROBIT_1_0
bool "microbit nrf51822 v1.0"
2023-01-09 10:14:23 +08:00
2021-04-11 12:24:47 +08:00
endchoice
2023-01-09 10:14:23 +08:00
menu "On-chip Peripheral Drivers"
2021-04-11 12:24:47 +08:00
config BSP_USING_UART
2023-01-09 10:14:23 +08:00
bool "Enable UART"
2021-04-11 12:24:47 +08:00
default y
select RT_USING_SERIAL
config BSP_USING_UART0
bool "Enable UART0"
2023-01-09 10:14:23 +08:00
default y
2021-04-11 12:24:47 +08:00
depends on BSP_USING_UART
2023-01-09 10:14:23 +08:00
2021-04-11 12:24:47 +08:00
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"
2023-01-09 10:14:23 +08:00
config MCU_FLASH_START_ADDRESS
2021-04-11 12:24:47 +08:00
hex "MCU FLASH START ADDRESS"
default 0x00000000
2023-01-09 10:14:23 +08:00
config MCU_FLASH_SIZE_KB
2021-04-11 12:24:47 +08:00
int "MCU FLASH SIZE, MAX size 1024 KB"
default 1024
2023-01-09 10:14:23 +08:00
config MCU_SRAM_START_ADDRESS
2021-04-11 12:24:47 +08:00
hex "MCU RAM START ADDRESS"
default 0x20000000
2023-01-09 10:14:23 +08:00
config MCU_SRAM_SIZE_KB
2021-04-11 12:24:47 +08:00
int "MCU RAM SIZE"
default 16
2023-01-09 10:14:23 +08:00
config MCU_FLASH_PAGE_SIZE
2021-04-11 12:24:47 +08:00
hex "MCU FLASH PAGE SIZE, please not change,nrfx default is 0x1000"
default 0x1000
2023-01-09 10:14:23 +08:00
endmenu
2021-04-11 12:24:47 +08:00
endmenu
if SOC_NORDIC
config NRFX_CLOCK_ENABLED
2023-01-09 10:14:23 +08:00
int
2021-04-11 12:24:47 +08:00
default 1
config NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY
2023-01-09 10:14:23 +08:00
int
2021-04-11 12:24:47 +08:00
default 7
config NRFX_CLOCK_CONFIG_LF_SRC
2023-01-09 10:14:23 +08:00
int
default 1
2021-04-11 12:24:47 +08:00
endif
if BSP_USING_UART
config NRFX_USING_UART
bool
default y
2023-01-09 10:14:23 +08:00
2021-04-11 12:24:47 +08:00
config NRFX_UART_ENABLED
2023-01-09 10:14:23 +08:00
int
2021-04-11 12:24:47 +08:00
default 1
2023-01-09 10:14:23 +08:00
2021-04-11 12:24:47 +08:00
config NRFX_UART0_ENABLED
2023-01-09 10:14:23 +08:00
int
2021-04-11 12:24:47 +08:00
default 1
depends on BSP_USING_UART0
endif
endmenu