Change nRF RTC implementation to use RTC2 #1046

(to avoid interference with Bluetooth Softdevice. See
https://github.com/adafruit/circuitpython/pull/1534#issuecomment-478776240
with thanks to @bboser for pointing it out)
This commit is contained in:
Nick Moore 2019-04-02 11:38:58 +11:00
parent 6afe23d0b0
commit 94bda3bde1
2 changed files with 3 additions and 1 deletions

View File

@ -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),

View File

@ -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