summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrobert-hh <robert@hammelrath.com>2023-03-19 12:58:05 +0100
committerDamien George <damien@micropython.org>2023-03-20 16:12:16 +1100
commit2cd3a7b45c246e2c226ca5ec87563ecad29b4165 (patch)
treea5bda3b8795dff13ae0182b9e958fe704ccce914
parent7ea192af05c2c0fb0d2992a13f6f58e763d81673 (diff)
nrf/nrfx_config: Use the UARTE definitions and drivers for the NRF52xx.
Suggested by @ricksorensen after testing. These match better the hardware of the NRF52xx.
-rw-r--r--ports/nrf/nrfx_config.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ports/nrf/nrfx_config.h b/ports/nrf/nrfx_config.h
index f1f859564..505014a2f 100644
--- a/ports/nrf/nrfx_config.h
+++ b/ports/nrf/nrfx_config.h
@@ -78,6 +78,10 @@
#define NRFX_UART_ENABLED 1
#define NRFX_UART0_ENABLED 1
#define NRFX_UART1_ENABLED 1
+#elif defined(NRF52_SERIES)
+ #define NRFX_UARTE_ENABLED 1
+ #define NRFX_UARTE0_ENABLED 1
+ #define NRFX_UARTE1_ENABLED 1
#else
#define NRFX_UARTE_ENABLED 1
#define NRFX_UARTE0_ENABLED 1