From 26c7ec5087074ad6f25f3fe51e5bba3300821ce5 Mon Sep 17 00:00:00 2001 From: raiden00pl Date: Fri, 17 Dec 2021 15:54:01 +0100 Subject: [PATCH] boards/arm/nrf52/nrf52832-dk: add sdc support --- boards/arm/nrf52/nrf52832-dk/src/nrf52_bringup.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/boards/arm/nrf52/nrf52832-dk/src/nrf52_bringup.c b/boards/arm/nrf52/nrf52832-dk/src/nrf52_bringup.c index 5f37940358..d79ccff4d3 100644 --- a/boards/arm/nrf52/nrf52832-dk/src/nrf52_bringup.c +++ b/boards/arm/nrf52/nrf52832-dk/src/nrf52_bringup.c @@ -37,6 +37,10 @@ # include #endif +#ifdef CONFIG_NRF52_SOFTDEVICE_CONTROLLER +# include "nrf52_sdc.h" +#endif + #include "nrf52832-dk.h" /**************************************************************************** @@ -92,6 +96,15 @@ int nrf52_bringup(void) } #endif +#ifdef CONFIG_NRF52_SOFTDEVICE_CONTROLLER + ret = nrf52_sdc_initialize(); + + if (ret < 0) + { + syslog(LOG_ERR, "ERROR: nrf52_sdc_initialize() failed: %d\n", ret); + } +#endif + UNUSED(ret); return OK; }