4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-30 02:51:33 +08:00

74 lines
1.8 KiB
Plaintext
Raw Normal View History

2020-04-14 22:17:27 +08:00
menu "Hardware Drivers Config"
config SOC_NRF52840
bool
2020-04-26 22:44:09 +08:00
config SOC_NRF52840
2020-04-14 22:17:27 +08:00
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
2020-04-14 22:17:27 +08:00
default y
menu "Onboard Peripheral Drivers"
config BSP_USING_JLINK_TO_USART
2020-04-26 22:44:09 +08:00
bool "Enable JLINK TO USART (uart0|RX_PIN:8|TX_PIN:6)"
2020-04-14 22:17:27 +08:00
select BSP_USING_UART
select BSP_USING_UART0
default y
endmenu
menu "On-chip Peripheral Drivers"
config BSP_USING_GPIO
bool "Enable GPIO"
select RT_USING_PIN
default y
menuconfig BSP_USING_UART
bool "Enable UART"
default y
select RT_USING_SERIAL
if BSP_USING_UART
config BSP_USING_UART0
bool "Enable UART0"
default y
2020-04-26 22:44:09 +08:00
if BSP_USING_UART0
config BSP_UART0_RX_PIN
int "uart0 rx pin number"
range 0 31
default 8
config BSP_UART0_TX_PIN
int "uart0 tx pin number"
range 0 31
default 6
endif
2020-04-14 22:17:27 +08:00
config BSP_USING_UART1
bool "Enable UART1"
default n
2020-04-26 22:44:09 +08:00
endif
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"
range 1 1024
default 1024
config MCU_SRAM_START_ADDRESS
hex "MCU RAM START ADDRESS"
default 0x20000000
config MCU_SRAM_SIZE_KB
int "MCU RAM SIZE, MAX size 256 KB"
range 1 256
default 256
config MCU_FLASH_PAGE_SIZE
hex "MCU FLASH PAGE SIZE, please not change,nrfx default is 0x1000"
range 0x1000 0x1000
default 0x1000
endmenu
2020-04-14 22:17:27 +08:00
endmenu
endmenu