• Johny Mattsson's avatar
    rtctime.dsleep() current draw improvements (#1659) · c5c0143b
    Johny Mattsson authored
    * Switch off interrupts before rtctime dsleep.
    
    * Deal with the fact that MCU keeps running after being told to enter deep sleep
    (It can keep running for quite a few instructions at times (and none at
    all at others), and it appears that trying to cache additional code from
    SPI flash while trying to go to sleep fails miserably at both....)
    
    * Ensure flash is not active when going into deep sleep.
    c5c0143b
rtctime_internal.h 26.3 KB