]> git.earman.xyz Git - sensor-watch.git/commitdiff
annotate SysTick erratum
authorAlex Maestas <git@se30.xyz>
Mon, 22 Jan 2024 00:31:04 +0000 (00:31 +0000)
committerAlex Maestas <git@se30.xyz>
Mon, 22 Jan 2024 00:39:20 +0000 (00:39 +0000)
watch-library/hardware/watch/watch_deepsleep.c

index 2e7edd72eef89442c922707a4dc530e1e355b512..efdad6dda4b4b69360f90aa64114d246faff9fdb 100644 (file)
@@ -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);