From 4484e9efbd074ded2aa396bbb0a0369cc52f8a20 Mon Sep 17 00:00:00 2001 From: Alberto Escolar Piedras Date: Sat, 24 Feb 2018 14:17:15 +0100 Subject: [PATCH] bluetooth: controller: nrf5: fix to IC-specific reset function Fix of 80210198ad80fc4390f76a3356c4eb6faff9b778 so it does not cause a segfault in simulated boards Signed-off-by: Alberto Escolar Piedras --- subsys/bluetooth/controller/hal/nrf5/radio/radio_nrf52832.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/subsys/bluetooth/controller/hal/nrf5/radio/radio_nrf52832.h b/subsys/bluetooth/controller/hal/nrf5/radio/radio_nrf52832.h index d0c999b2a9c..749162773cf 100644 --- a/subsys/bluetooth/controller/hal/nrf5/radio/radio_nrf52832.h +++ b/subsys/bluetooth/controller/hal/nrf5/radio/radio_nrf52832.h @@ -205,9 +205,11 @@ static inline void hal_radio_reset(void) { +#if !defined(CONFIG_BOARD_NRFXX_NWTSIM) /* Anomalies 102, 106 and 107 */ *(volatile u32_t *)0x40001774 = ((*(volatile u32_t *)0x40001774) & 0xfffffffe) | 0x01000000; +#endif /* !CONFIG_BOARD_NRFXX_NWTSIM */ } static inline void hal_radio_ram_prio_setup(void)