Skip to content

Commit 97e79ea

Browse files
degjorvaVge0rge
authored andcommitted
[nrf fromlist] platform: nordic_nrf: Update cleanup targets in hw_init.c
Newer Nordic devices use different UARTS. Update to also clean these. Upstream PR: 42554 Change-Id: I880bae2708f3cf28f52961ac459296255f52c7e3 Signed-off-by: Dag Erik Gjørvad <[email protected]>
1 parent a956d8f commit 97e79ea

File tree

1 file changed

+15
-0
lines changed
  • platform/ext/target/nordic_nrf/common/core

1 file changed

+15
-0
lines changed

platform/ext/target/nordic_nrf/common/core/hw_init.c

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,24 @@ static void hw_init_nrf_peripherals(void)
8686
#if defined(NRF_UARTE0)
8787
nrf_cleanup_uarte(NRF_UARTE0);
8888
#endif
89+
#if defined(NRF_UARTE00)
90+
nrf_cleanup_uarte(NRF_UARTE00);
91+
#endif
8992
#if defined(NRF_UARTE1)
9093
nrf_cleanup_uarte(NRF_UARTE1);
9194
#endif
95+
#if defined(NRF_UARTE20)
96+
nrf_cleanup_uarte(NRF_UARTE20);
97+
#endif
98+
#if defined(NRF_UARTE21)
99+
nrf_cleanup_uarte(NRF_UARTE21);
100+
#endif
101+
#if defined(NRF_UARTE22)
102+
nrf_cleanup_uarte(NRF_UARTE22);
103+
#endif
104+
#if defined(NRF_UARTE30)
105+
nrf_cleanup_uarte(NRF_UARTE30);
106+
#endif
92107

93108
nrf_cleanup_peripheral_interconnect();
94109

0 commit comments

Comments
 (0)