diff --git a/ports/nrf/common-hal/rtc/RTC.c b/ports/nrf/common-hal/rtc/RTC.c index d807d7b039..25c1003ed9 100644 --- a/ports/nrf/common-hal/rtc/RTC.c +++ b/ports/nrf/common-hal/rtc/RTC.c @@ -43,7 +43,7 @@ volatile static uint32_t rtc_offset = 0; -const nrfx_rtc_t rtc_instance = NRFX_RTC_INSTANCE(0); +const nrfx_rtc_t rtc_instance = NRFX_RTC_INSTANCE(2); const nrfx_rtc_config_t rtc_config = { .prescaler = RTC_FREQ_TO_PRESCALER(RTC_CLOCK_HZ), diff --git a/ports/nrf/nrfx_config.h b/ports/nrf/nrfx_config.h index b8a0a7f60d..d51739fac2 100644 --- a/ports/nrf/nrfx_config.h +++ b/ports/nrf/nrfx_config.h @@ -72,6 +72,8 @@ #define NRFX_RTC_ENABLED 1 #define NRFX_RTC0_ENABLED 1 +#define NRFX_RTC1_ENABLED 1 +#define NRFX_RTC2_ENABLED 1 // TIMERS #define NRFX_TIMER_ENABLED 1