Skip to content

Commit 3712fd3

Browse files
aescolarcarlescufi
authored andcommittedAug 9, 2018
Bluetooth: controller: remove unnecessary guards in hal headers
After a dedicated header is allocated to the simulated SOC versions there is no need anymore to have guards in these other files Signed-off-by: Alberto Escolar Piedras <alpi@oticon.com>
1 parent e0864a9 commit 3712fd3

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed
 

‎subsys/bluetooth/controller/hal/nrf5/radio/radio_nrf52810.h

-2
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,6 @@ static inline void hal_radio_reset(void)
199199

200200
static inline void hal_radio_ram_prio_setup(void)
201201
{
202-
#if !defined(CONFIG_SOC_SERIES_NWTSIM_NRFXX)
203202
struct {
204203
u32_t volatile reserved_0[0x5a0 >> 2];
205204
u32_t volatile bridge_type;
@@ -236,7 +235,6 @@ static inline void hal_radio_ram_prio_setup(void)
236235
NRF_AMLI->RAMPRI.I2S = 0xFFFFFFFFUL;
237236
NRF_AMLI->RAMPRI.PDM = 0xFFFFFFFFUL;
238237
NRF_AMLI->RAMPRI.PWM = 0xFFFFFFFFUL;
239-
#endif /* !CONFIG_SOC_SERIES_NWTSIM_NRFXX */
240238
}
241239

242240
static inline u32_t hal_radio_phy_mode_get(u8_t phy, u8_t flags)

‎subsys/bluetooth/controller/hal/nrf5/radio/radio_nrf52832.h

-4
Original file line numberDiff line numberDiff line change
@@ -196,16 +196,13 @@
196196

197197
static inline void hal_radio_reset(void)
198198
{
199-
#if !defined(CONFIG_SOC_SERIES_NWTSIM_NRFXX)
200199
/* Anomalies 102, 106 and 107 */
201200
*(volatile u32_t *)0x40001774 = ((*(volatile u32_t *)0x40001774) &
202201
0xfffffffe) | 0x01000000;
203-
#endif /* !CONFIG_SOC_SERIES_NWTSIM_NRFXX */
204202
}
205203

206204
static inline void hal_radio_ram_prio_setup(void)
207205
{
208-
#if !defined(CONFIG_SOC_SERIES_NWTSIM_NRFXX)
209206
struct {
210207
u32_t volatile reserved_0[0x5a0 >> 2];
211208
u32_t volatile bridge_type;
@@ -242,7 +239,6 @@ static inline void hal_radio_ram_prio_setup(void)
242239
NRF_AMLI->RAMPRI.I2S = 0xFFFFFFFFUL;
243240
NRF_AMLI->RAMPRI.PDM = 0xFFFFFFFFUL;
244241
NRF_AMLI->RAMPRI.PWM = 0xFFFFFFFFUL;
245-
#endif /* !CONFIG_SOC_SERIES_NWTSIM_NRFXX */
246242
}
247243

248244
static inline u32_t hal_radio_phy_mode_get(u8_t phy, u8_t flags)

0 commit comments

Comments
 (0)
Please sign in to comment.