circuitpython/ports/mimxrt10xx
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
..
boards Add `board_deinit` for use with sleep 2020-12-08 10:52:25 -08:00
common-hal address review comments 2020-12-01 20:01:14 -05:00
linking Unify iMX flash config and add Metro M7 1011 2020-10-07 15:23:47 -07:00
peripherals/mimxrt10xx wip 2020-11-22 19:10:09 -05:00
sdk@8363ff7bed Correct MIMXRT sdk version 2020-03-27 15:40:17 -07:00
supervisor Add `board_deinit` for use with sleep 2020-12-08 10:52:25 -08:00
.gitignore Add initial MIMXRT10XX port 2020-01-06 21:08:49 +01:00
Makefile cxd56 needed more precise include for __packed; needed SRC_C += on some ports 2020-10-15 15:24:24 -04:00
README.md Add initial MIMXRT10XX port 2020-01-06 21:08:49 +01:00
background.c supervisor: factor supervisor_background_tasks from sundry ports 2020-07-15 11:49:44 -05:00
background.h supervisor: factor supervisor_background_tasks from sundry ports 2020-07-15 11:49:44 -05:00
board.h Add `board_deinit` for use with sleep 2020-12-08 10:52:25 -08:00
fatfs_port.c Add license to some obvious files. 2020-07-06 19:16:25 +01:00
mpconfigport.h Moved ORDEREDDICT define to central location 2020-10-13 18:52:27 -05:00
mpconfigport.mk replace USB_MSC_MAX_PACKET_SIZE with USB_HIGHSPEED in descriptor gen tool 2020-07-29 15:38:55 +07:00
mphalport.c Switch iMX RT to RTC. Untested. 2020-03-23 18:20:58 -07:00
mphalport.h Add more "extern" declarations for gcc10 compat 2020-08-21 14:39:37 -05:00
qstrdefsport.h Add initial MIMXRT10XX port 2020-01-06 21:08:49 +01:00
reset.c Refine iMX RT memory layout and add three boards 2020-01-17 17:36:08 -08:00
reset.h mimxrt10xx: Add required header for NORETURN definition 2020-09-28 18:56:01 -05:00

README.md

CircuitPython Port To The NXP i.MX RT10xx Series

This is a port of CircuitPython to the i.MX RT10xx series of chips.