diff options
| author | Scott Shawcroft <scott@tannewt.org> | 2020-10-13 10:15:34 -0700 |
|---|---|---|
| committer | Scott Shawcroft <scott@tannewt.org> | 2020-10-13 10:15:34 -0700 |
| commit | 2bc40bcadf36d27d2807ac155f185e6cc55e9ecb (patch) | |
| tree | dadb5384173ebc7e5505952e643dd90cae9fc9dd /ports | |
| parent | 379e73af2e55b1f0c517883360e29d5dbc27a20b (diff) | |
Remove readreq when changing continuous
Diffstat (limited to 'ports')
| -rw-r--r-- | ports/atmel-samd/supervisor/port.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ports/atmel-samd/supervisor/port.c b/ports/atmel-samd/supervisor/port.c index 6686d794c..d65d09825 100644 --- a/ports/atmel-samd/supervisor/port.c +++ b/ports/atmel-samd/supervisor/port.c @@ -98,8 +98,7 @@ volatile bool hold_interrupt = false; #ifdef SAMD21 static void rtc_set_continuous(bool continuous) { while (RTC->MODE0.STATUS.bit.SYNCBUSY); - // TODO: DaveP: Do we need the RREQ here? - RTC->MODE0.READREQ.reg = RTC_READREQ_RREQ | (continuous ? RTC_READREQ_RCONT : 0) | 0x0010; + RTC->MODE0.READREQ.reg = (continuous ? RTC_READREQ_RCONT : 0) | 0x0010; while (RTC->MODE0.STATUS.bit.SYNCBUSY); } |
