Skip to content

Commit 912d9cd

Browse files
committed
[bsp/nrf5x] fix the kconfig
1 parent e7351c6 commit 912d9cd

File tree

2 files changed

+23
-4
lines changed

2 files changed

+23
-4
lines changed

bsp/nrf5x/nrf52840/board/Kconfig

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ config SOC_NRF52840
1212
config NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY
1313
int
1414
default 7
15+
config NRFX_CLOCK_CONFIG_LF_SRC
16+
int
17+
default 1
1518

19+
1620
config SOC_NORDIC
1721
bool
1822
config SOC_NORDIC
@@ -69,6 +73,11 @@ menu "On-chip Peripheral Drivers"
6973
bool "Enable GPIO"
7074
select RT_USING_PIN
7175
default y
76+
if BSP_USING_GPIO
77+
config NRFX_GPIOTE_ENABLED
78+
int
79+
default 1
80+
endif
7281
config BSP_USING_SAADC
7382
bool "Enable SAADC"
7483
select RT_USING_ADC
@@ -191,10 +200,17 @@ menu "On-chip Peripheral Drivers"
191200
select RT_USING_SERIAL
192201

193202
if BSP_USING_UART
203+
config NRFX_UART_ENABLED
204+
int
205+
default 1
206+
194207
config BSP_USING_UART0
195208
bool "Enable UART0"
196209
default y
197210
if BSP_USING_UART0
211+
config NRFX_UART0_ENABLED
212+
int
213+
default 1
198214
config BSP_UART0_RX_PIN
199215
int "uart0 rx pin number"
200216
range 0 31
@@ -215,6 +231,9 @@ menu "On-chip Peripheral Drivers"
215231
default y
216232

217233
if BSP_USING_SPI
234+
config NRFX_SPI_ENABLED
235+
int
236+
default 1
218237
config BSP_USING_SPI0
219238
bool "Enable SPI0 bus"
220239
default y

bsp/nrf5x/nrf52840/board/sdk_config.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1899,7 +1899,7 @@
18991899
// <e> NRFX_GPIOTE_ENABLED - nrfx_gpiote - GPIOTE peripheral driver
19001900
//==========================================================
19011901
#ifndef NRFX_GPIOTE_ENABLED
1902-
#define NRFX_GPIOTE_ENABLED 1
1902+
#define NRFX_GPIOTE_ENABLED 0
19031903
#endif
19041904
// <o> NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS - Number of lower power input pins
19051905
#ifndef NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS
@@ -2903,7 +2903,7 @@
29032903
// <e> NRFX_QSPI_ENABLED - nrfx_qspi - QSPI peripheral driver
29042904
//==========================================================
29052905
#ifndef NRFX_QSPI_ENABLED
2906-
#define NRFX_QSPI_ENABLED 1
2906+
#define NRFX_QSPI_ENABLED 0
29072907
#endif
29082908
// <o> NRFX_QSPI_CONFIG_SCK_DELAY - tSHSL, tWHSL and tSHWL in number of 16 MHz periods (62.5 ns). <0-255>
29092909

@@ -4382,11 +4382,11 @@
43824382
// <e> NRFX_UART_ENABLED - nrfx_uart - UART peripheral driver
43834383
//==========================================================
43844384
#ifndef NRFX_UART_ENABLED
4385-
#define NRFX_UART_ENABLED 1
4385+
#define NRFX_UART_ENABLED 0
43864386
#endif
43874387
// <o> NRFX_UART0_ENABLED - Enable UART0 instance
43884388
#ifndef NRFX_UART0_ENABLED
4389-
#define NRFX_UART0_ENABLED 1
4389+
#define NRFX_UART0_ENABLED 0
43904390
#endif
43914391

43924392
// <o> NRFX_UART_DEFAULT_CONFIG_HWFC - Hardware Flow Control

0 commit comments

Comments
 (0)