From b776fe69692e92497c7aae0f38dfcbe14b2ca024 Mon Sep 17 00:00:00 2001 From: Glenn Ruben Bakke Date: Thu, 9 Jul 2020 20:41:11 +0200 Subject: [PATCH] nrf/nrfx_config: Disable RTC2 for nRF9160 targets. nRF9160 does not have any RTC2. Disable the configuration in case of NRF9160_XXAA. --- ports/nrf/nrfx_config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/nrf/nrfx_config.h b/ports/nrf/nrfx_config.h index 19c744510f..beb6b34ab3 100644 --- a/ports/nrf/nrfx_config.h +++ b/ports/nrf/nrfx_config.h @@ -130,7 +130,7 @@ #define NRFX_RTC_ENABLED (MICROPY_PY_MACHINE_RTCOUNTER) #define NRFX_RTC0_ENABLED 1 #define NRFX_RTC1_ENABLED 1 -#define NRFX_RTC2_ENABLED (!NRF51) +#define NRFX_RTC2_ENABLED (!NRF51) && (!NRF9160_XXAA) #define NRFX_TIMER_ENABLED (MICROPY_PY_MACHINE_TIMER) #define NRFX_TIMER0_ENABLED 1