forked from micropython/micropython
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Lower power by using the Wait for Interrupt (WFI) instruction #2685
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
62 commits
Select commit
Hold shift + click to select a range
6f60afe
First try at lowering the power consumption
tannewt 4183339
Fix autoreload, neopixel, monotonic_ns and sleep w/o SD
tannewt ed5cdd7
Hopefully fix flash flush and hopefully audio as well.
tannewt 00d5f63
Hopefully fix PulseIn
tannewt affd3fc
Clear the pending IRQ in the NVIC as well.
tannewt 48b5f2a
Initial work on SAMD
tannewt 4fba4eb
Switch from 1k RTC input to 32k output
tannewt df5be65
Update FrequencyIn for new clock API.
tannewt 7100d5e
Fix autoreload and ticks in general
tannewt 76ca13b
Fix SAMD51 pulsein
tannewt 4297ae2
Fix DotStar status LED init.
tannewt d9e6815
fix up SAMD21 sleep
tannewt 6db11cf
Fix up Spresense build. It doesn't sleep.
tannewt 2623022
Initial work for STM32. Need to fix us delay and PulseIn still.
tannewt c0c4c44
Factor out stm32f4xx_hal_conf.h
tannewt a56170d
Temporarily swap samd-peripherals location
tannewt 653b761
Add back microsecond delay to STM32
tannewt a8ed6d9
Switch iMX RT to RTC. Untested.
tannewt 5e1e4d3
Get basic sleep going on the iMX RT 1011
tannewt ea0ce39
Simplify STM a bit.
tannewt e4c4a4a
Swap to committed dependencies
tannewt 798118b
Update board.c's to remove remaining tick.h
tannewt a4a4589
Correct MIMXRT sdk version
tannewt 4b063ae
Hack up STM32 PulseIn so it builds
tannewt 8fe512c
Merge remote-tracking branch 'adafruit/master' into lower_power
tannewt 317b96e
Fix iMX builds
tannewt 1071924
Fix thunderpack build
tannewt 75b7f58
Update LiteX APIs for new tick
tannewt 77562a2
Update the supported ports
tannewt 46af4bd
Fix SAMD21 PulseIn
tannewt c248730
Clean up
tannewt 7e69d30
Fix nRF PulseIn
tannewt e99cf6e
Rework sleep timing
tannewt c0ba2a8
Updates based on feedback from jepler
tannewt c49d2ea
Don't upgrade to Sphinx 3
tannewt a8dfba2
Fix alarm so that it is correctly set.
tannewt aae0ce6
Fix autoreload and ticks on IMX RT
tannewt 6544bf5
Enable SNVS interrupt
tannewt d0a25ca
Tweaks based on dhalberts feedback
tannewt 9e34da4
Use newer Ubuntu for CI.
tannewt 01941c0
Fix up STM
tannewt a6fb0be
Update translations
tannewt 7dfcae6
Tweaks from jepler
tannewt b580b34
Merge remote-tracking branch 'adafruit/master' into lower_power
tannewt b3552ef
Remove accidental file
tannewt abd340a
Remove tick.h from merged file.
tannewt bebf27e
Merge remote-tracking branch 'adafruit/master' into lower_power
tannewt 17d0388
Use our own flag for board crystal config.
tannewt 5cc8a3e
Add back fake us delay.
tannewt dcb0e50
Fix USB midi and hid disable.
tannewt b277944
Fix STM so it matches the correct RTC fields.
tannewt f13de32
Add HSE_VALUE for STM feather.
tannewt 755d404
Merge remote-tracking branch 'adafruit/master' into lower_power
tannewt de42e4a
Merge remote-tracking branch 'adafruit/master' into lower_power
tannewt 48a191a
Update translations
tannewt e45de39
Fix nucleo_f746zg build
tannewt b7804f4
Fix stm32746g_discovery
tannewt a30ff70
Merge remote-tracking branch 'adafruit/master' into lower_power
tannewt 18657b6
Update TinyUSB to include SAMD race fix
tannewt 3799c34
Disable bitbangio on CPX Crickit so we have room for lower_power.
tannewt 1ca9057
Merge remote-tracking branch 'adafruit/master' into lower_power
tannewt a863b0a
Fix openmv_h7 build
tannewt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,19 @@ | ||
Supported Ports | ||
============================== | ||
|
||
Adafruit's CircuitPython currently has limited support with a focus on supporting the Atmel SAMD | ||
and ESP8266. | ||
CircuitPython supports a number of microcontroller families. Support quality for each varies | ||
depending on the active contributors for each port. | ||
|
||
Adafruit sponsored developers are actively contributing to atmel-samd, mimxrt10xx, nrf and stm | ||
ports. They also maintain the other ports in order to ensure the boards build. Additional testing | ||
is limited. | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
../ports/atmel-samd/README | ||
../ports/cxd56/README | ||
../ports/litex/README | ||
../ports/mimxrt10xx/README | ||
../ports/nrf/README | ||
../ports/stm/README | ||
../ports/cxd56/README |
Submodule tinyusb
updated
19 files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ msgid "" | |
msgstr "" | ||
"Project-Id-Version: PACKAGE VERSION\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2020-04-26 14:46-0500\n" | ||
"POT-Creation-Date: 2020-04-27 18:34-0700\n" | ||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language-Team: LANGUAGE <[email protected]>\n" | ||
|
@@ -285,11 +285,12 @@ msgstr "Semua timer untuk pin ini sedang digunakan" | |
|
||
#: ports/atmel-samd/common-hal/audioio/AudioOut.c | ||
#: ports/atmel-samd/common-hal/frequencyio/FrequencyIn.c | ||
#: ports/atmel-samd/common-hal/pulseio/PulseIn.c | ||
#: ports/atmel-samd/common-hal/pulseio/PulseOut.c | ||
#: ports/cxd56/common-hal/pulseio/PulseOut.c | ||
#: ports/nrf/common-hal/audiopwmio/PWMAudioOut.c | ||
#: ports/nrf/peripherals/nrf/timers.c shared-bindings/pulseio/PWMOut.c | ||
#: shared-module/_pew/PewPew.c | ||
#: ports/nrf/common-hal/pulseio/PulseIn.c ports/nrf/peripherals/nrf/timers.c | ||
#: shared-bindings/pulseio/PWMOut.c shared-module/_pew/PewPew.c | ||
msgid "All timers in use" | ||
msgstr "Semua timer sedang digunakan" | ||
|
||
|
@@ -1242,6 +1243,10 @@ msgstr "" | |
msgid "Pull not used when direction is output." | ||
msgstr "" | ||
|
||
#: ports/stm/common-hal/pulseio/PulseIn.c | ||
msgid "PulseIn not supported on this chip" | ||
msgstr "" | ||
|
||
#: ports/stm/common-hal/pulseio/PulseOut.c | ||
msgid "PulseOut not supported on this chip" | ||
msgstr "" | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ msgid "" | |
msgstr "" | ||
"Project-Id-Version: PACKAGE VERSION\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2020-04-26 14:46-0500\n" | ||
"POT-Creation-Date: 2020-04-27 18:34-0700\n" | ||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language-Team: LANGUAGE <[email protected]>\n" | ||
|
@@ -283,11 +283,12 @@ msgstr "" | |
|
||
#: ports/atmel-samd/common-hal/audioio/AudioOut.c | ||
#: ports/atmel-samd/common-hal/frequencyio/FrequencyIn.c | ||
#: ports/atmel-samd/common-hal/pulseio/PulseIn.c | ||
#: ports/atmel-samd/common-hal/pulseio/PulseOut.c | ||
#: ports/cxd56/common-hal/pulseio/PulseOut.c | ||
#: ports/nrf/common-hal/audiopwmio/PWMAudioOut.c | ||
#: ports/nrf/peripherals/nrf/timers.c shared-bindings/pulseio/PWMOut.c | ||
#: shared-module/_pew/PewPew.c | ||
#: ports/nrf/common-hal/pulseio/PulseIn.c ports/nrf/peripherals/nrf/timers.c | ||
#: shared-bindings/pulseio/PWMOut.c shared-module/_pew/PewPew.c | ||
msgid "All timers in use" | ||
msgstr "" | ||
|
||
|
@@ -1228,6 +1229,10 @@ msgstr "" | |
msgid "Pull not used when direction is output." | ||
msgstr "" | ||
|
||
#: ports/stm/common-hal/pulseio/PulseIn.c | ||
msgid "PulseIn not supported on this chip" | ||
msgstr "" | ||
|
||
#: ports/stm/common-hal/pulseio/PulseOut.c | ||
msgid "PulseOut not supported on this chip" | ||
msgstr "" | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ msgid "" | |
msgstr "" | ||
"Project-Id-Version: \n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2020-04-26 14:46-0500\n" | ||
"POT-Creation-Date: 2020-04-27 18:34-0700\n" | ||
"PO-Revision-Date: 2018-12-20 22:15-0800\n" | ||
"Last-Translator: Timothy <[email protected]>\n" | ||
"Language-Team: fil\n" | ||
|
@@ -287,11 +287,12 @@ msgstr "Lahat ng timers para sa pin na ito ay ginagamit" | |
|
||
#: ports/atmel-samd/common-hal/audioio/AudioOut.c | ||
#: ports/atmel-samd/common-hal/frequencyio/FrequencyIn.c | ||
#: ports/atmel-samd/common-hal/pulseio/PulseIn.c | ||
#: ports/atmel-samd/common-hal/pulseio/PulseOut.c | ||
#: ports/cxd56/common-hal/pulseio/PulseOut.c | ||
#: ports/nrf/common-hal/audiopwmio/PWMAudioOut.c | ||
#: ports/nrf/peripherals/nrf/timers.c shared-bindings/pulseio/PWMOut.c | ||
#: shared-module/_pew/PewPew.c | ||
#: ports/nrf/common-hal/pulseio/PulseIn.c ports/nrf/peripherals/nrf/timers.c | ||
#: shared-bindings/pulseio/PWMOut.c shared-module/_pew/PewPew.c | ||
msgid "All timers in use" | ||
msgstr "Lahat ng timer ginagamit" | ||
|
||
|
@@ -1250,6 +1251,10 @@ msgstr "" | |
msgid "Pull not used when direction is output." | ||
msgstr "Pull hindi ginagamit kapag ang direksyon ay output." | ||
|
||
#: ports/stm/common-hal/pulseio/PulseIn.c | ||
msgid "PulseIn not supported on this chip" | ||
msgstr "" | ||
|
||
#: ports/stm/common-hal/pulseio/PulseOut.c | ||
msgid "PulseOut not supported on this chip" | ||
msgstr "" | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ msgid "" | |
msgstr "" | ||
"Project-Id-Version: 0.1\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2020-04-26 14:46-0500\n" | ||
"POT-Creation-Date: 2020-04-27 18:34-0700\n" | ||
"PO-Revision-Date: 2019-04-14 20:05+0100\n" | ||
"Last-Translator: Pierrick Couturier <[email protected]>\n" | ||
"Language-Team: fr\n" | ||
|
@@ -290,11 +290,12 @@ msgstr "Tous les timers pour cette broche sont utilisés" | |
|
||
#: ports/atmel-samd/common-hal/audioio/AudioOut.c | ||
#: ports/atmel-samd/common-hal/frequencyio/FrequencyIn.c | ||
#: ports/atmel-samd/common-hal/pulseio/PulseIn.c | ||
#: ports/atmel-samd/common-hal/pulseio/PulseOut.c | ||
#: ports/cxd56/common-hal/pulseio/PulseOut.c | ||
#: ports/nrf/common-hal/audiopwmio/PWMAudioOut.c | ||
#: ports/nrf/peripherals/nrf/timers.c shared-bindings/pulseio/PWMOut.c | ||
#: shared-module/_pew/PewPew.c | ||
#: ports/nrf/common-hal/pulseio/PulseIn.c ports/nrf/peripherals/nrf/timers.c | ||
#: shared-bindings/pulseio/PWMOut.c shared-module/_pew/PewPew.c | ||
msgid "All timers in use" | ||
msgstr "Tous les timers sont utilisés" | ||
|
||
|
@@ -1263,6 +1264,10 @@ msgstr "Appuyez sur une touche pour entrer sur REPL ou CTRL-D pour recharger." | |
msgid "Pull not used when direction is output." | ||
msgstr "Le tirage 'pull' n'est pas utilisé quand la direction est 'output'." | ||
|
||
#: ports/stm/common-hal/pulseio/PulseIn.c | ||
msgid "PulseIn not supported on this chip" | ||
msgstr "" | ||
|
||
#: ports/stm/common-hal/pulseio/PulseOut.c | ||
msgid "PulseOut not supported on this chip" | ||
msgstr "" | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ msgid "" | |
msgstr "" | ||
"Project-Id-Version: PACKAGE VERSION\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2020-04-26 14:46-0500\n" | ||
"POT-Creation-Date: 2020-04-27 18:34-0700\n" | ||
"PO-Revision-Date: 2018-10-02 16:27+0200\n" | ||
"Last-Translator: Enrico Paganin <[email protected]>\n" | ||
"Language-Team: \n" | ||
|
@@ -286,11 +286,12 @@ msgstr "Tutti i timer per questo pin sono in uso" | |
|
||
#: ports/atmel-samd/common-hal/audioio/AudioOut.c | ||
#: ports/atmel-samd/common-hal/frequencyio/FrequencyIn.c | ||
#: ports/atmel-samd/common-hal/pulseio/PulseIn.c | ||
#: ports/atmel-samd/common-hal/pulseio/PulseOut.c | ||
#: ports/cxd56/common-hal/pulseio/PulseOut.c | ||
#: ports/nrf/common-hal/audiopwmio/PWMAudioOut.c | ||
#: ports/nrf/peripherals/nrf/timers.c shared-bindings/pulseio/PWMOut.c | ||
#: shared-module/_pew/PewPew.c | ||
#: ports/nrf/common-hal/pulseio/PulseIn.c ports/nrf/peripherals/nrf/timers.c | ||
#: shared-bindings/pulseio/PWMOut.c shared-module/_pew/PewPew.c | ||
msgid "All timers in use" | ||
msgstr "Tutti i timer utilizzati" | ||
|
||
|
@@ -1259,6 +1260,10 @@ msgstr "" | |
msgid "Pull not used when direction is output." | ||
msgstr "" | ||
|
||
#: ports/stm/common-hal/pulseio/PulseIn.c | ||
msgid "PulseIn not supported on this chip" | ||
msgstr "" | ||
|
||
#: ports/stm/common-hal/pulseio/PulseOut.c | ||
msgid "PulseOut not supported on this chip" | ||
msgstr "" | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.