diff --git a/bsp/nrf5x/nrf52840/board/Kconfig b/bsp/nrf5x/nrf52840/board/Kconfig index 7cdd0b4a7f18f57e248d8a5120cccfeb21e460bc..1a3fd7d8ba255f2e0771e3c09d690ed421762177 100644 --- a/bsp/nrf5x/nrf52840/board/Kconfig +++ b/bsp/nrf5x/nrf52840/board/Kconfig @@ -12,7 +12,11 @@ config SOC_NRF52840 config NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY int default 7 + config NRFX_CLOCK_CONFIG_LF_SRC + int + default 1 + config SOC_NORDIC bool config SOC_NORDIC @@ -69,6 +73,11 @@ menu "On-chip Peripheral Drivers" bool "Enable GPIO" select RT_USING_PIN default y + if BSP_USING_GPIO + config NRFX_GPIOTE_ENABLED + int + default 1 + endif config BSP_USING_SAADC bool "Enable SAADC" select RT_USING_ADC @@ -191,10 +200,17 @@ menu "On-chip Peripheral Drivers" select RT_USING_SERIAL if BSP_USING_UART + config NRFX_UART_ENABLED + int + default 1 + config BSP_USING_UART0 bool "Enable UART0" default y if BSP_USING_UART0 + config NRFX_UART0_ENABLED + int + default 1 config BSP_UART0_RX_PIN int "uart0 rx pin number" range 0 31 @@ -215,6 +231,9 @@ menu "On-chip Peripheral Drivers" default y if BSP_USING_SPI + config NRFX_SPI_ENABLED + int + default 1 config BSP_USING_SPI0 bool "Enable SPI0 bus" default y diff --git a/bsp/nrf5x/nrf52840/board/sdk_config.h b/bsp/nrf5x/nrf52840/board/sdk_config.h index 172e0ccc2cb18fe53f0242b3db4d891f765ed129..bdc0abd4a9ba184d583e09285e102ade96c95044 100644 --- a/bsp/nrf5x/nrf52840/board/sdk_config.h +++ b/bsp/nrf5x/nrf52840/board/sdk_config.h @@ -1899,7 +1899,7 @@ // NRFX_GPIOTE_ENABLED - nrfx_gpiote - GPIOTE peripheral driver //========================================================== #ifndef NRFX_GPIOTE_ENABLED -#define NRFX_GPIOTE_ENABLED 1 +#define NRFX_GPIOTE_ENABLED 0 #endif // NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS - Number of lower power input pins #ifndef NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS @@ -2903,7 +2903,7 @@ // NRFX_QSPI_ENABLED - nrfx_qspi - QSPI peripheral driver //========================================================== #ifndef NRFX_QSPI_ENABLED -#define NRFX_QSPI_ENABLED 1 +#define NRFX_QSPI_ENABLED 0 #endif // NRFX_QSPI_CONFIG_SCK_DELAY - tSHSL, tWHSL and tSHWL in number of 16 MHz periods (62.5 ns). <0-255> @@ -4382,11 +4382,11 @@ // NRFX_UART_ENABLED - nrfx_uart - UART peripheral driver //========================================================== #ifndef NRFX_UART_ENABLED -#define NRFX_UART_ENABLED 1 +#define NRFX_UART_ENABLED 0 #endif // NRFX_UART0_ENABLED - Enable UART0 instance #ifndef NRFX_UART0_ENABLED -#define NRFX_UART0_ENABLED 1 +#define NRFX_UART0_ENABLED 0 #endif // NRFX_UART_DEFAULT_CONFIG_HWFC - Hardware Flow Control