You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2021/12/17 17:24:56 UTC
[incubator-nuttx] 03/04: boards/arm/nrf52/nrf52840-dk: add sdc support
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit 4812f9f39028d925df609d235444781daf33de3d
Author: raiden00pl <ra...@railab.me>
AuthorDate: Fri Dec 17 15:53:42 2021 +0100
boards/arm/nrf52/nrf52840-dk: add sdc support
---
boards/arm/nrf52/nrf52840-dk/src/nrf52_bringup.c | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/boards/arm/nrf52/nrf52840-dk/src/nrf52_bringup.c b/boards/arm/nrf52/nrf52840-dk/src/nrf52_bringup.c
index eb0d8c1..b055243 100644
--- a/boards/arm/nrf52/nrf52840-dk/src/nrf52_bringup.c
+++ b/boards/arm/nrf52/nrf52840-dk/src/nrf52_bringup.c
@@ -33,6 +33,10 @@
# include <nuttx/leds/userled.h>
#endif
+#ifdef CONFIG_NRF52_SOFTDEVICE_CONTROLLER
+# include "nrf52_sdc.h"
+#endif
+
#include "nrf52840-dk.h"
/****************************************************************************
@@ -214,6 +218,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;
}