You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by an...@apache.org on 2022/08/11 12:46:43 UTC

[mynewt-nimble] 03/03: nimble/phy/nrf: Add some configuration after boot

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

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

commit 437b2f7ad974b4b15c114414fdd1f3942689b245
Author: Andrzej Kaczmarek <an...@codecoup.pl>
AuthorDate: Thu Aug 11 13:19:56 2022 +0200

    nimble/phy/nrf: Add some configuration after boot
---
 nimble/drivers/nrf5340/src/ble_phy.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/nimble/drivers/nrf5340/src/ble_phy.c b/nimble/drivers/nrf5340/src/ble_phy.c
index ac90c4f1..7d0e3e1f 100644
--- a/nimble/drivers/nrf5340/src/ble_phy.c
+++ b/nimble/drivers/nrf5340/src/ble_phy.c
@@ -1386,6 +1386,7 @@ ble_phy_init(void)
     /* Toggle peripheral power to reset (just in case) */
     NRF_RADIO_NS->POWER = 0;
     NRF_RADIO_NS->POWER = 1;
+    *(volatile uint32_t *)(NRF_RADIO_NS_BASE + 0x774) = (*(volatile uint32_t* )(NRF_RADIO_NS_BASE + 0x774) & 0xfffffffe) | 0x01000000;
 
     /* Errata 16 - RADIO: POWER register is not functional
      * Workaround: Reset all RADIO registers in firmware.