summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Maestas <git@se30.xyz>2024-01-22 00:31:04 +0000
committerAlex Maestas <git@se30.xyz>2024-01-22 00:39:20 +0000
commit2ae8f9863bdb01cb57696548d4b0f7f29a92b3fd (patch)
treef16fccab4b769228ea2de98e0c03570702d18801
parent83a0e4e992388e6aaba9390cc1212649ae44d239 (diff)
downloadSensor-Watch-2ae8f9863bdb01cb57696548d4b0f7f29a92b3fd.tar.gz
Sensor-Watch-2ae8f9863bdb01cb57696548d4b0f7f29a92b3fd.tar.bz2
Sensor-Watch-2ae8f9863bdb01cb57696548d4b0f7f29a92b3fd.zip
annotate SysTick erratum
-rw-r--r--watch-library/hardware/watch/watch_deepsleep.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/watch-library/hardware/watch/watch_deepsleep.c b/watch-library/hardware/watch/watch_deepsleep.c
index 2e7edd72..efdad6dd 100644
--- a/watch-library/hardware/watch/watch_deepsleep.c
+++ b/watch-library/hardware/watch/watch_deepsleep.c
@@ -160,7 +160,8 @@ void watch_enter_sleep_mode(void) {
// disable brownout detector interrupt, which could inadvertently wake us up.
SUPC->INTENCLR.bit.BOD33DET = 1;
- // work around a silicon erratum by disabling the SysTick interrupt, which is
+ // per Microchip datasheet clarification DS80000782,
+ // work around silicon erratum 1.8.4 by disabling the SysTick interrupt, which is
// enabled as part of driver init, before going to sleep.
SysTick->CTRL = SysTick->CTRL & ~(CONF_SYSTICK_TICKINT << SysTick_CTRL_TICKINT_Pos);