From 2cd3a7b45c246e2c226ca5ec87563ecad29b4165 Mon Sep 17 00:00:00 2001 From: robert-hh Date: Sun, 19 Mar 2023 12:58:05 +0100 Subject: [PATCH] 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. --- ports/nrf/nrfx_config.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ports/nrf/nrfx_config.h b/ports/nrf/nrfx_config.h index f1f8595640..505014a2f2 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