mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-06-05 21:04:49 +00:00
nimble/phy/nrf5x: Fix compilation with nrfx 2.11
This release change NRF_FICR_NS->TRIMCNF[index].ADDR from (uint32_t *) to uint32_t.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user