circuitpython/locale
Scott Shawcroft 40118bcf57
Add `board_deinit` for use with sleep
This changes lots of files to unify `board.h` across ports. It adds
`board_deinit` when CIRCUITPY_ALARM is set. `main.c` uses it to
deinit the board before deep sleeping (even when pretending.)

Deep sleep is now a two step process for the port. First, the
port should prepare to deep sleep based on the given alarms. It
should set alarms for both deep and pretend sleep. In particular,
the pretend versions should be set immediately so that we don't
miss an alarm as we shutdown. These alarms should also wake from
`port_idle_until_interrupt` which is used when pretending to deep
sleep.

Second, when real deep sleeping, `alarm_enter_deep_sleep` is called.
The port should set any alarms it didn't during prepare based on
data it saved internally during prepare.

ESP32-S2 sleep is a bit reorganized to locate more logic with
TimeAlarm. This will help it scale to more alarm types.

Fixes #3786
2020-12-08 10:52:25 -08:00
..
ID.po Update translation files 2020-12-02 22:23:14 +01:00
circuitpython.pot Add `board_deinit` for use with sleep 2020-12-08 10:52:25 -08:00
cs.po Update translation files 2020-12-02 22:23:14 +01:00
de_DE.po Update translation files 2020-12-02 22:23:14 +01:00
el.po Update translation files 2020-12-02 22:23:14 +01:00
en_US.po Add copyright and license information to translations. 2020-07-06 19:16:21 +01:00
en_x_pirate.po Add copyright and license information to translations. 2020-07-06 19:16:21 +01:00
es.po Update translation files 2020-12-02 22:23:14 +01:00
fil.po Update translation files 2020-12-02 22:23:14 +01:00
fr.po Update translation files 2020-12-02 22:23:14 +01:00
hi.po Update translation files 2020-12-02 22:23:14 +01:00
it_IT.po Update translation files 2020-12-02 22:23:14 +01:00
ja.po Update translation files 2020-12-02 22:23:14 +01:00
ko.po Update translation files 2020-12-02 22:23:14 +01:00
nl.po Update translation files 2020-12-02 22:23:14 +01:00
pl.po Update translation files 2020-12-02 22:23:14 +01:00
pt_BR.po Update translation files 2020-12-02 22:23:14 +01:00
sv.po Update translation files 2020-12-02 22:23:14 +01:00
zh_Latn_pinyin.po Update translation files 2020-12-02 22:23:14 +01:00