circuitpython/ports/stm/boards
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
..
espruino_pico Add board_deinit for use with sleep 2020-12-08 10:52:25 -08:00
espruino_wifi Add board_deinit for use with sleep 2020-12-08 10:52:25 -08:00
feather_stm32f405_express Add board_deinit for use with sleep 2020-12-08 10:52:25 -08:00
meowbit_v121 Add board_deinit for use with sleep 2020-12-08 10:52:25 -08:00
nucleo_f746zg Add board_deinit for use with sleep 2020-12-08 10:52:25 -08:00
nucleo_f767zi Add board_deinit for use with sleep 2020-12-08 10:52:25 -08:00
nucleo_h743zi_2 Add board_deinit for use with sleep 2020-12-08 10:52:25 -08:00
openmv_h7 Add board_deinit for use with sleep 2020-12-08 10:52:25 -08:00
pyb_nano_v2 Add board_deinit for use with sleep 2020-12-08 10:52:25 -08:00
pyboard_v11 Add board_deinit for use with sleep 2020-12-08 10:52:25 -08:00
stm32f4_discovery Add board_deinit for use with sleep 2020-12-08 10:52:25 -08:00
stm32f411ce_blackpill Add board_deinit for use with sleep 2020-12-08 10:52:25 -08:00
stm32f411ve_discovery Add board_deinit for use with sleep 2020-12-08 10:52:25 -08:00
stm32f412zg_discovery Add board_deinit for use with sleep 2020-12-08 10:52:25 -08:00
stm32f746g_discovery Add board_deinit for use with sleep 2020-12-08 10:52:25 -08:00
thunderpack_v11 Add board_deinit for use with sleep 2020-12-08 10:52:25 -08:00
thunderpack_v12 Add board_deinit for use with sleep 2020-12-08 10:52:25 -08:00
common_default.ld Fix up end of file and trailing whitespace. 2020-06-03 10:56:35 +01:00
common_nvm.ld Fix up end of file and trailing whitespace. 2020-06-03 10:56:35 +01:00
common_tcm.ld Fix up end of file and trailing whitespace. 2020-06-03 10:56:35 +01:00
openocd_stm32f4.cfg create copy 2020-03-11 18:13:06 -04:00
STM32F401xd_fs.ld Add recovery domain write access, adjust stack 2020-05-11 18:02:40 -04:00
STM32F401xe_boot.ld Fix up end of file and trailing whitespace. 2020-06-03 10:56:35 +01:00
STM32F401xe_fs.ld Add recovery domain write access, adjust stack 2020-05-11 18:02:40 -04:00
STM32F405_boot.ld Fix up end of file and trailing whitespace. 2020-06-03 10:56:35 +01:00
STM32F405_default.ld Fix up end of file and trailing whitespace. 2020-06-03 10:56:35 +01:00
STM32F405_fs.ld Fix up end of file and trailing whitespace. 2020-06-03 10:56:35 +01:00
STM32F407_fs.ld Fix up end of file and trailing whitespace. 2020-06-03 10:56:35 +01:00
STM32F411_fs.ld Fix up end of file and trailing whitespace. 2020-06-03 10:56:35 +01:00
STM32F411_nvm_nofs.ld Remove filesystem from linker script. 2020-11-23 22:56:38 -08:00
STM32F411_nvm.ld Move NVM block to increase program size. 2020-06-25 21:46:15 -07:00
STM32F412_fs.ld Fix up end of file and trailing whitespace. 2020-06-03 10:56:35 +01:00
STM32F746xG_fs.ld Add DTCM and ITCM support to F7 series 2020-06-09 18:01:52 -04:00
STM32F767_fs.ld Add DTCM and ITCM support to F7 series 2020-06-09 18:01:52 -04:00
STM32H743_fs.ld Fix up end of file and trailing whitespace. 2020-06-03 10:56:35 +01:00
system_stm32f4xx.c Fix up end of file and trailing whitespace. 2020-06-03 10:56:35 +01:00
system_stm32f7xx.c Fix up end of file and trailing whitespace. 2020-06-03 10:56:35 +01:00
system_stm32h7xx.c Fix up end of file and trailing whitespace. 2020-06-03 10:56:35 +01:00