提交 912d9cda 编写于 作者: Thomas_Fly's avatar Thomas_Fly

[bsp/nrf5x] fix the kconfig

上级 e7351c6f
...@@ -12,6 +12,10 @@ config SOC_NRF52840 ...@@ -12,6 +12,10 @@ config SOC_NRF52840
config NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY config NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY
int int
default 7 default 7
config NRFX_CLOCK_CONFIG_LF_SRC
int
default 1
config SOC_NORDIC config SOC_NORDIC
bool bool
...@@ -69,6 +73,11 @@ menu "On-chip Peripheral Drivers" ...@@ -69,6 +73,11 @@ menu "On-chip Peripheral Drivers"
bool "Enable GPIO" bool "Enable GPIO"
select RT_USING_PIN select RT_USING_PIN
default y default y
if BSP_USING_GPIO
config NRFX_GPIOTE_ENABLED
int
default 1
endif
config BSP_USING_SAADC config BSP_USING_SAADC
bool "Enable SAADC" bool "Enable SAADC"
select RT_USING_ADC select RT_USING_ADC
...@@ -191,10 +200,17 @@ menu "On-chip Peripheral Drivers" ...@@ -191,10 +200,17 @@ menu "On-chip Peripheral Drivers"
select RT_USING_SERIAL select RT_USING_SERIAL
if BSP_USING_UART if BSP_USING_UART
config NRFX_UART_ENABLED
int
default 1
config BSP_USING_UART0 config BSP_USING_UART0
bool "Enable UART0" bool "Enable UART0"
default y default y
if BSP_USING_UART0 if BSP_USING_UART0
config NRFX_UART0_ENABLED
int
default 1
config BSP_UART0_RX_PIN config BSP_UART0_RX_PIN
int "uart0 rx pin number" int "uart0 rx pin number"
range 0 31 range 0 31
...@@ -215,6 +231,9 @@ menu "On-chip Peripheral Drivers" ...@@ -215,6 +231,9 @@ menu "On-chip Peripheral Drivers"
default y default y
if BSP_USING_SPI if BSP_USING_SPI
config NRFX_SPI_ENABLED
int
default 1
config BSP_USING_SPI0 config BSP_USING_SPI0
bool "Enable SPI0 bus" bool "Enable SPI0 bus"
default y default y
......
...@@ -1899,7 +1899,7 @@ ...@@ -1899,7 +1899,7 @@
// <e> NRFX_GPIOTE_ENABLED - nrfx_gpiote - GPIOTE peripheral driver // <e> NRFX_GPIOTE_ENABLED - nrfx_gpiote - GPIOTE peripheral driver
//========================================================== //==========================================================
#ifndef NRFX_GPIOTE_ENABLED #ifndef NRFX_GPIOTE_ENABLED
#define NRFX_GPIOTE_ENABLED 1 #define NRFX_GPIOTE_ENABLED 0
#endif #endif
// <o> NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS - Number of lower power input pins // <o> NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS - Number of lower power input pins
#ifndef NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS #ifndef NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS
...@@ -2903,7 +2903,7 @@ ...@@ -2903,7 +2903,7 @@
// <e> NRFX_QSPI_ENABLED - nrfx_qspi - QSPI peripheral driver // <e> NRFX_QSPI_ENABLED - nrfx_qspi - QSPI peripheral driver
//========================================================== //==========================================================
#ifndef NRFX_QSPI_ENABLED #ifndef NRFX_QSPI_ENABLED
#define NRFX_QSPI_ENABLED 1 #define NRFX_QSPI_ENABLED 0
#endif #endif
// <o> NRFX_QSPI_CONFIG_SCK_DELAY - tSHSL, tWHSL and tSHWL in number of 16 MHz periods (62.5 ns). <0-255> // <o> NRFX_QSPI_CONFIG_SCK_DELAY - tSHSL, tWHSL and tSHWL in number of 16 MHz periods (62.5 ns). <0-255>
...@@ -4382,11 +4382,11 @@ ...@@ -4382,11 +4382,11 @@
// <e> NRFX_UART_ENABLED - nrfx_uart - UART peripheral driver // <e> NRFX_UART_ENABLED - nrfx_uart - UART peripheral driver
//========================================================== //==========================================================
#ifndef NRFX_UART_ENABLED #ifndef NRFX_UART_ENABLED
#define NRFX_UART_ENABLED 1 #define NRFX_UART_ENABLED 0
#endif #endif
// <o> NRFX_UART0_ENABLED - Enable UART0 instance // <o> NRFX_UART0_ENABLED - Enable UART0 instance
#ifndef NRFX_UART0_ENABLED #ifndef NRFX_UART0_ENABLED
#define NRFX_UART0_ENABLED 1 #define NRFX_UART0_ENABLED 0
#endif #endif
// <o> NRFX_UART_DEFAULT_CONFIG_HWFC - Hardware Flow Control // <o> NRFX_UART_DEFAULT_CONFIG_HWFC - Hardware Flow Control
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册