2021-08-16 10:05:49 +08:00
|
|
|
menu "Hardware Drivers Config"
|
|
|
|
|
|
|
|
config SOC_NRF52833
|
|
|
|
bool
|
|
|
|
select RT_USING_COMPONENTS_INIT
|
|
|
|
select RT_USING_USER_MAIN
|
|
|
|
default y
|
2023-01-09 10:14:23 +08:00
|
|
|
|
2021-08-16 10:05:49 +08:00
|
|
|
config SOC_NORDIC
|
2023-01-09 10:14:23 +08:00
|
|
|
bool
|
2021-08-16 10:05:49 +08:00
|
|
|
default y
|
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "Select BSP board "
|
|
|
|
default BSP_BOARD_PCA_10100
|
|
|
|
|
|
|
|
config BSP_BOARD_PCA_10100
|
|
|
|
bool "NRF52833 pca10100"
|
2023-01-09 10:14:23 +08:00
|
|
|
|
2021-08-16 10:05:49 +08:00
|
|
|
endchoice
|
|
|
|
|
2023-01-09 10:14:23 +08:00
|
|
|
menu "On-chip Peripheral Drivers"
|
2021-08-16 10:05:49 +08:00
|
|
|
config BSP_USING_UART
|
2023-01-09 10:14:23 +08:00
|
|
|
bool "Enable UART"
|
2021-08-16 10:05:49 +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-08-16 10:05:49 +08:00
|
|
|
depends on BSP_USING_UART
|
2023-01-09 10:14:23 +08:00
|
|
|
|
2021-08-16 10:05:49 +08:00
|
|
|
config BSP_UART0_RX_PIN
|
|
|
|
depends on BSP_USING_UART0
|
|
|
|
int "uart0 rx pin number"
|
|
|
|
default 8 if BSP_BOARD_PCA_10100
|
2023-01-09 10:14:23 +08:00
|
|
|
|
2021-08-16 10:05:49 +08:00
|
|
|
config BSP_UART0_TX_PIN
|
|
|
|
depends on BSP_USING_UART0
|
|
|
|
int "uart0 tx pin number"
|
|
|
|
default 6 if BSP_BOARD_PCA_10100
|
|
|
|
|
|
|
|
menu "On-chip flash config"
|
|
|
|
|
2023-01-09 10:14:23 +08:00
|
|
|
config MCU_FLASH_START_ADDRESS
|
2021-08-16 10:05:49 +08:00
|
|
|
hex "MCU FLASH START ADDRESS"
|
|
|
|
default 0x00000000
|
|
|
|
|
2023-01-09 10:14:23 +08:00
|
|
|
config MCU_FLASH_SIZE_KB
|
2021-08-16 10:05:49 +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-08-16 10:05:49 +08:00
|
|
|
hex "MCU RAM START ADDRESS"
|
|
|
|
default 0x20000000
|
|
|
|
|
2023-01-09 10:14:23 +08:00
|
|
|
config MCU_SRAM_SIZE_KB
|
2021-08-16 10:05:49 +08:00
|
|
|
int "MCU RAM SIZE"
|
|
|
|
default 256
|
|
|
|
|
2023-01-09 10:14:23 +08:00
|
|
|
config MCU_FLASH_PAGE_SIZE
|
2021-08-16 10:05:49 +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-08-16 10:05:49 +08:00
|
|
|
|
|
|
|
endmenu
|
|
|
|
|
|
|
|
if SOC_NORDIC
|
|
|
|
config NRFX_CLOCK_ENABLED
|
2023-01-09 10:14:23 +08:00
|
|
|
int
|
2021-08-16 10:05:49 +08:00
|
|
|
default 1
|
|
|
|
config NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY
|
2023-01-09 10:14:23 +08:00
|
|
|
int
|
2021-08-16 10:05:49 +08:00
|
|
|
default 7
|
|
|
|
config NRFX_CLOCK_CONFIG_LF_SRC
|
2023-01-09 10:14:23 +08:00
|
|
|
int
|
|
|
|
default 1
|
2021-08-16 10:05:49 +08:00
|
|
|
endif
|
|
|
|
|
|
|
|
if BSP_USING_UART
|
|
|
|
config NRFX_USING_UART
|
|
|
|
bool
|
|
|
|
default y
|
2023-01-09 10:14:23 +08:00
|
|
|
|
2021-08-16 10:05:49 +08:00
|
|
|
config NRFX_UART_ENABLED
|
2023-01-09 10:14:23 +08:00
|
|
|
int
|
2021-08-16 10:05:49 +08:00
|
|
|
default 1
|
2023-01-09 10:14:23 +08:00
|
|
|
|
2021-08-16 10:05:49 +08:00
|
|
|
config NRFX_UART0_ENABLED
|
2023-01-09 10:14:23 +08:00
|
|
|
int
|
2021-08-16 10:05:49 +08:00
|
|
|
default 1
|
|
|
|
depends on BSP_USING_UART0
|
|
|
|
endif
|
|
|
|
|
2021-08-16 19:14:49 +08:00
|
|
|
choice
|
|
|
|
prompt "BLE STACK"
|
|
|
|
default BLE_STACK_USING_NULL
|
|
|
|
help
|
|
|
|
Select the ble stack
|
|
|
|
|
|
|
|
config BLE_STACK_USING_NULL
|
|
|
|
bool "not use the ble stack"
|
|
|
|
|
|
|
|
config BSP_USING_SOFTDEVICE
|
|
|
|
select PKG_USING_NRF5X_SDK
|
|
|
|
bool "Nordic softdevice(perpheral)"
|
|
|
|
|
|
|
|
config BSP_USING_NIMBLE
|
|
|
|
select PKG_USING_NIMBLE
|
|
|
|
select PKG_NIMBLE_BSP_NRF52840
|
|
|
|
bool "use nimble stack(iot)"
|
|
|
|
endchoice
|
|
|
|
|
2021-08-16 10:05:49 +08:00
|
|
|
|
|
|
|
endmenu
|
|
|
|
|
|
|
|
|