adafruit / Adafruit_ZeroTimer

happy wrappers for TC modules 3,4,5 on SAMD21
MIT License
31 stars 25 forks source link

Sleep ? #12

Closed aessig closed 4 years ago

aessig commented 4 years ago
void RTCZero::standbyMode()
{
  // Entering standby mode when connected
  // via the native USB port causes issues.
  SCB->SCR |= SCB_SCR_SLEEPDEEP_Msk;
  __DSB();
  __WFI();
}

Thanks :)

ladyada commented 4 years ago

you could check https://github.com/adafruit/Adafruit_SleepyDog