This is an automated email from the ASF dual-hosted git repository.

janc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git

commit 0cdfaa8622ada0b22ea28c38b9c64a5b8f2008a6
Author: Bas van den Berg <[email protected]>
AuthorDate: Wed Sep 21 14:47:05 2022 +0200

    fix: make include cm4 dependant on SERIES, not MYNEWT only
---
 nimble/drivers/nrf5x/src/ble_hw.c  | 2 ++
 nimble/drivers/nrf5x/src/ble_phy.c | 3 +++
 2 files changed, 5 insertions(+)

diff --git a/nimble/drivers/nrf5x/src/ble_hw.c 
b/nimble/drivers/nrf5x/src/ble_hw.c
index 0accbbf4..9a46fa6c 100644
--- a/nimble/drivers/nrf5x/src/ble_hw.c
+++ b/nimble/drivers/nrf5x/src/ble_hw.c
@@ -30,7 +30,9 @@
 #if MYNEWT
 #include "mcu/cmsis_nvic.h"
 #else
+#ifdef NRF52_SERIES
 #include "core_cm4.h"
+#endif
 #include <nimble/nimble_npl_os.h>
 #endif
 #include "os/os_trace_api.h"
diff --git a/nimble/drivers/nrf5x/src/ble_phy.c 
b/nimble/drivers/nrf5x/src/ble_phy.c
index dc996156..84f60cef 100644
--- a/nimble/drivers/nrf5x/src/ble_phy.c
+++ b/nimble/drivers/nrf5x/src/ble_phy.c
@@ -48,8 +48,11 @@
 #include "mcu/cmsis_nvic.h"
 #include "hal/hal_gpio.h"
 #else
+#include <hal/nrf_clock.h>
+#ifdef NRF52_SERIES
 #include "core_cm4.h"
 #endif
+#endif
 #include <nrf_erratas.h>
 #include "phy_priv.h"
 

Reply via email to