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
The following commit(s) were added to refs/heads/master by this push:
new 6ccf8208 nimble/phy/nrf5x: Fix compilation with nrfx 2.11
6ccf8208 is described below
commit 6ccf8208e0ae2ad1051117be12c0faefa97277e7
Author: Szymon Janc <[email protected]>
AuthorDate: Tue Aug 1 12:33:53 2023 +0200
nimble/phy/nrf5x: Fix compilation with nrfx 2.11
This release change NRF_FICR_NS->TRIMCNF[index].ADDR from (uint32_t *)
to uint32_t.
---
nimble/drivers/nrf5x/src/ble_phy.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/nimble/drivers/nrf5x/src/ble_phy.c
b/nimble/drivers/nrf5x/src/ble_phy.c
index 3ba359c8..481ed619 100644
--- a/nimble/drivers/nrf5x/src/ble_phy.c
+++ b/nimble/drivers/nrf5x/src/ble_phy.c
@@ -1570,7 +1570,7 @@ ble_phy_init(void)
#ifdef NRF53_SERIES
/* Errata 158: load trim values after toggling power */
for (uint32_t index = 0; index < 32ul &&
- NRF_FICR_NS->TRIMCNF[index].ADDR != (uint32_t *)0xFFFFFFFFul;
index++) {
+ NRF_FICR_NS->TRIMCNF[index].ADDR != 0xFFFFFFFFul; index++) {
if (((uint32_t)NRF_FICR_NS->TRIMCNF[index].ADDR & 0xFFFFF000ul) ==
(volatile uint32_t)NRF_RADIO_NS) {
*((volatile uint32_t *)NRF_FICR_NS->TRIMCNF[index].ADDR) =
NRF_FICR_NS->TRIMCNF[index].DATA;
}