Commit Graph

18393 Commits

Author SHA1 Message Date
Scott Shawcroft
0b4bcd9599
Fix build and more comments 2020-12-08 13:05:21 -08:00
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
Dan Halbert
1df033465a
Merge pull request #3806 from pewpew-game/rotarydoc
Remove warning about lack of support on M0 from rotaryio
2020-12-08 13:20:03 -05:00
Radomir Dopieralski
2c546ab768 Remove warning about lack of support on M0 from rotaryio
It seems that this warning no longer applies.
2020-12-08 15:54:34 +01:00
Dan Halbert
7250925b98
Merge pull request #3802 from tannewt/fix_s2_safe_mode
Store safe mode state in the RTC.
2020-12-07 23:27:24 -05:00
Scott Shawcroft
44b56f76c4
Store safe mode state in the RTC.
Also print backtrace before reset when DEBUG. This will help debug
safe mode issues which calls reset.
2020-12-07 16:39:54 -08:00
Dan Halbert
054eafd42f
Merge pull request #3797 from dhalbert/reset-reason-run-reason-available
Make ResetReason and RunReason available
2020-12-07 15:41:45 -05:00
Scott Shawcroft
22ad76bb48
Merge pull request #3800 from BennyE/wifi-better-logs
Enhance debug log for wifi scan, sta_start, sta_stop
2020-12-07 12:32:15 -08:00
Scott Shawcroft
7ac200017d
Merge pull request #3799 from dhalbert/wifi-radio-gc-collect
Include wifi.radio singleton in gc
2020-12-07 12:26:16 -08:00
Dan Halbert
169b487509 Include wifi.radio singleton in gc 2020-12-07 11:07:56 -05:00
BennyE
70827ac3da debug log for wifi scan, start stop 2020-12-06 23:38:04 +01:00
Dan Halbert
9391c8f9dd Make ResetReason and RunReason available 2020-12-06 12:00:00 -05:00
Scott Shawcroft
a7ec4a0489
Merge pull request #3791 from dhalbert/radio-set-enabled
allow radio.enabled to be settable
2020-12-04 10:32:53 -08:00
Dan Halbert
2f0e676fcb update doc per review 2020-12-03 22:06:02 -05:00
Dan Halbert
57fa6bece8 allow radio.enabled to be settable 2020-12-03 21:27:35 -05:00
Jeff Epler
fb90f51082
Merge pull request #3779 from weblate/weblate-circuitpython-main
Translations update from Weblate
2020-12-02 21:19:32 -06:00
Hosted Weblate
03d0ec85a1
Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/
2020-12-02 22:23:14 +01:00
Hosted Weblate
079bf7ab94
Merge branch 'origin/main' into Weblate. 2020-12-02 22:23:12 +01:00
Scott Shawcroft
1130b80e2a
Merge pull request #3612 from gamblor21/bus_device
Moving Adafruit_CircuitPython_BusDevice to core
2020-12-02 13:23:02 -08:00
Hosted Weblate
a483cd1acb
Merge branch 'origin/main' into Weblate. 2020-12-02 22:13:25 +01:00
Dan Halbert
348392f8cc
Merge pull request #3775 from tannewt/nina_certs
Use nina-fw root certs
2020-12-02 16:13:19 -05:00
Hosted Weblate
c7749a569d
Merge branch 'origin/main' into Weblate. 2020-12-02 22:12:36 +01:00
Dan Halbert
9b3186b625
Merge pull request #3776 from tannewt/backup_socket_timeout
Two minor socket changes
2020-12-02 16:12:29 -05:00
Hosted Weblate
51fd678ee0
Merge branch 'origin/main' into Weblate. 2020-12-02 22:10:31 +01:00
Dan Halbert
31acfedf93
Merge pull request #3780 from tannewt/block_while_erasing
Block all tasks (not interrupts) during flash erase
2020-12-02 16:10:25 -05:00
Hosted Weblate
7655102ef2
Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/
2020-12-02 21:51:54 +01:00
Hosted Weblate
8f6baa212f
Merge branch 'origin/main' into Weblate. 2020-12-02 21:51:52 +01:00
Scott Shawcroft
d7ba641ff6
Merge pull request #3767 from dhalbert/sleep
Initial alarm and sleep PR: time alarms with light and deep sleep; PinAlarms not yet implemented
2020-12-02 12:51:43 -08:00
vkuthan
9e6b2b1da8
Translated using Weblate (Czech)
Currently translated at 3.2% (28 of 864 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/cs/
2020-12-02 21:29:04 +01:00
Maciej Stankiewicz
1c00deb8be
Translated using Weblate (Polish)
Currently translated at 71.8% (621 of 864 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/pl/
2020-12-02 21:29:04 +01:00
gamblor21
cb863e4c5c Added to partial builds where frozen removed 2020-12-01 22:19:48 -06:00
Scott Shawcroft
73e22f9eeb
Block all tasks (not interrupts) during flash erase
Otherwise we risk running code from flash while an erase is in
progress, crashing and corrupting the file system.

Related to #3744
2020-12-01 18:15:06 -08:00
Dan Halbert
72fa7d88b8 fix doc errors 2020-12-01 20:13:46 -05:00
gamblor21
fe1c2fa6f0 Removed bus device from simmel build 2020-12-01 19:11:17 -06:00
Dan Halbert
8b7c23c1ee address review comments 2020-12-01 20:01:14 -05:00
gamblor21
d3bbb99e07 Fixing stubs 2020-12-01 17:49:15 -06:00
Mark
237385798c
Merge branch 'main' into bus_device 2020-12-01 15:47:16 -06:00
Maciej Stankiewicz
2b9ca4d48a
Translated using Weblate (Polish)
Currently translated at 70.9% (613 of 864 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/pl/
2020-12-01 20:56:03 +01:00
Szymon Jakubiak
44e0d98c62
Translated using Weblate (Polish)
Currently translated at 70.9% (613 of 864 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/pl/
2020-12-01 20:56:03 +01:00
Maciej Stankiewicz
f6cba4c974
Translated using Weblate (Polish)
Currently translated at 70.7% (611 of 864 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/pl/
2020-12-01 20:53:22 +01:00
Szymon Jakubiak
a95285ad36
Translated using Weblate (Polish)
Currently translated at 70.7% (611 of 864 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/pl/
2020-12-01 20:53:21 +01:00
Scott Shawcroft
9a9e972242
Ignore certificates readme in doc build 2020-12-01 11:01:26 -08:00
Scott Shawcroft
927624468d
Two minor socket changes
* Remove BrokenPipeError and prefer to return the number of bytes
  received. (May be zero.)
* Add two minute backup timeout to reduce the chance we hang on
  recv accidentally.
2020-11-30 18:39:50 -08:00
Scott Shawcroft
4ac4faaaf6
Use nina-fw root certs
That way we have one set we use for all of Adafruit's connected
devices.
2020-11-30 17:02:26 -08:00
Scott Shawcroft
5b3c930e38
Merge pull request #3738 from microDev1/fix-touch
ESP32S2: Fix multiple touchpad don't work simultaneously
2020-11-30 16:03:16 -08:00
Scott Shawcroft
a975ef4971
Merge pull request #3695 from cwalther/movable
Add movable supervisor allocations
2020-11-30 16:00:55 -08:00
Scott Shawcroft
299b6efd84
Merge pull request #3774 from weblate/weblate-circuitpython-main
Translations update from Weblate
2020-11-30 15:40:46 -08:00
Christian Walther
d6f8a43f6c Eliminate goto. 2020-11-30 23:33:38 +01:00
Hosted Weblate
1395ce9a7b
Merge branch 'origin/main' into Weblate. 2020-11-30 22:48:05 +01:00
Scott Shawcroft
98cf7f67d4
Merge pull request #3773 from dhalbert/no-samd21-complex-arithmetic
Disable complex arithmetic on SAMD21 builds to make space
2020-11-30 13:47:56 -08:00