Skip to content

Commit feff492

Browse files
vidarbenvlsianpu
authored andcommitted
[nrf noup] nrf_cleanup: add more uarte instances
Add UARTE00 to the list, and included missing check for UARTE136. There are quite a few more uarte instances which could be added, but this may make the list overerly long. Ideally, we should use the DT to determine which instances need to be unitilized. Signed-off-by: Vidar Berg <vidar.berg@nordicsemi.no>
1 parent e62b292 commit feff492

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

boot/zephyr/nrf_cleanup.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
#include <pm_config.h>
3535
#endif
3636

37-
#if defined(NRF_UARTE0) || defined(NRF_UARTE1) || defined(NRF_UARTE20) || \
38-
defined(NRF_UARTE30)
37+
#if defined(NRF_UARTE0) || defined(NRF_UARTE1) || defined(NRF_UARTE00) || \
38+
defined(NRF_UARTE20) || defined(NRF_UARTE30) || defined(NRF_UARTE136)
3939
#define NRF_UARTE_CLEANUP
4040
#endif
4141

@@ -102,6 +102,9 @@ static NRF_UARTE_Type *nrf_uarte_to_clean[] = {
102102
#if defined(NRF_UARTE1)
103103
NRF_UARTE1,
104104
#endif
105+
#if defined(NRF_UARTE00)
106+
NRF_UARTE00,
107+
#endif
105108
#if defined(NRF_UARTE20)
106109
NRF_UARTE20,
107110
#endif

0 commit comments

Comments
 (0)