Lucian Copeland
e0024c70de
Merge remote-tracking branch 'upstream/main' into stm-alarm
2021-04-15 16:32:30 -04:00
Lucian Copeland
8a2143f161
Clean up comments and debugging pins
2021-04-02 17:40:40 -04:00
Lucian Copeland
9240146b22
Make light sleep store true alarm object to global map
2021-04-02 16:58:42 -04:00
Lucian Copeland
66a1583183
Implement fake and true deep sleep alarm differentiation
2021-04-02 15:13:10 -04:00
Lucian Copeland
17585e1e07
Clean up API
2021-04-02 14:08:48 -04:00
Lucian Copeland
91e530d36c
Resolve wake alarm crash
2021-04-02 13:42:22 -04:00
Lucian Copeland
4f52554eb3
Fix to RTC reset
2021-04-01 20:53:25 -04:00
Lucian Copeland
d35a307ffa
Merge branch 'sleep-api-update' into stm-alarm
2021-03-29 12:27:25 -04:00
Lucian Copeland
529fb52309
Style changes and wakeup detection
2021-03-27 13:16:12 -04:00
Artyom Skrobov
b40d072648
[stm] implementation of audiopwmio
...
Based on nrf PWMAudioOut by @jepler and stm PulseOut by @hierophect
Tested on a Meowbit
2021-03-26 13:18:01 -04:00
Lucian Copeland
d8a2d69e10
Working deep sleep via RTC reset, with debug pins
2021-03-21 13:15:44 -04:00
Dan Halbert
d7a2ae9df7
fix stm compiler error
2021-03-19 11:04:46 -04:00
Dan Halbert
b2d913412f
merge from upstream
2021-03-18 23:14:43 -04:00
gamblor21
0890b54cd9
More formatting
2021-03-16 08:29:04 -05:00
gamblor21
fb437d8280
Formatting fixes
2021-03-16 08:22:02 -05:00
Mark
e326d7ca80
Merge branch 'main' into rp_dp_parallel
2021-03-15 20:00:13 -05:00
microDev
a52eb88031
run code formatting script
2021-03-15 19:27:36 +05:30
gamblor21
56a219911f
Add frequency support to parallel bus
2021-03-11 19:32:43 -06:00
Lucian Copeland
6b2c9985ff
Extract RTC, implement fake RTC deepsleep
2021-03-11 17:50:05 -05:00
Lucian Copeland
1ebbd14d0f
Fix UART deinit
2021-03-11 11:02:13 -05:00
Dan Halbert
08c5dbb003
use return values in STM PWMOut constructor, not exceptions
2021-03-11 08:52:47 -05:00
Artyom Skrobov
4720dc179a
[stm] curr_pulseout
can be STATIC
...
Not used outside of PulseOut.c
2021-03-05 12:52:13 +02:00
Lucian Copeland
f1792c8474
Extract EXTI, create base sleep framework
2021-03-02 11:41:53 -05:00
Jeff Epler
1d1ff5f308
Merge remote-tracking branch 'origin/main' into update-protomatter-rp2
2021-02-26 09:56:35 -06:00
Dan Halbert
67406488d1
merge from upstream; re-alphabetize
2021-02-19 14:22:50 -05:00
Jeff Epler
ff1942cff6
Enable protomatter on RP2040 builds
...
Also found a race condition between timer_disable and redraw, which
would happen if I debugger-paused inside common_hal_rgbmatrix_timer_disable
or put a delay or print inside it. That's what pausing inside reconstruct
fixes.
So that the "right timer" can be chosen, `timer_allocate` now gets the `self`
pointer. It's guaranteed at this point that the pin information is accurate,
so you can e.g., find a PWM unit related to the pins themselves.
This required touching each port to add the parameter even though it's
unused everywhere but raspberrypi.
2021-02-12 08:25:15 -06:00
Dan Halbert
f0564b4986
merge from upstream; complicated webusb merge
2021-02-11 18:50:02 -05:00
Lucian Copeland
d00bee2149
Fix I2C Repeated start error by converting to IT mode
2021-02-10 14:59:19 -05:00
microDev
dc332baa87
update common_hal_reset_pin()
2020-12-28 20:04:00 +05:30
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
8b7c23c1ee
address review comments
2020-12-01 20:01:14 -05:00
Dan Halbert
104a089677
deep sleep working; deep sleep delay when connected
2020-11-26 22:06:37 -05:00
Dan Halbert
ef0830bfe2
merge from upstream + wip
2020-11-25 17:52:06 -05:00
jgillick
4c5e7520f5
Fix NVM by clearing FLASH_FLAG_PGPERR
2020-11-23 00:25:41 -08:00
Dan Halbert
a0f1ec3c4a
wip
2020-11-22 19:10:09 -05:00
jgillick
381889f6bc
Cleanup
2020-11-22 01:19:28 -08:00
jgillick
0b858440b0
Fix formatting.
2020-11-22 01:15:05 -08:00
jgillick
63b0bf9075
Merge remote-tracking branch 'origin/main' into thunderpack1.2
2020-11-22 01:07:03 -08:00
Dan Halbert
75559f35cc
wip: ResetReason to microcontroller.cpu
2020-11-21 23:29:52 -05:00
jgillick
5f0a372a22
Merge tag '6.0.0' into thunderpack1.2
2020-11-17 00:02:24 -08:00
jgillick
119e9d3820
Add Thunderpack 1.2
2020-11-16 23:50:00 -08:00
Dan Halbert
ffff02c053
Merge remote-tracking branch 'adafruit/main' into sleep
2020-11-16 12:06:11 -05:00
Scott Shawcroft
68eb809fbf
Update parallel bus signatures
2020-11-13 18:57:52 -08:00
microDev
930cf14dce
Add check for invalid io, function to disable all alarms
2020-10-27 16:17:26 -07:00
microDev
e35938971a
Add description of alarm modules
2020-10-27 16:16:55 -07:00
Jeff Epler
16ed875f4e
canio: remove unused fields
...
these relate to properties that were removed as well
2020-10-06 20:14:50 -05:00
Jeff Epler
81d7ef0256
stm: canio: remove stray optimization flag for debugging
2020-10-06 20:13:23 -05:00
Jeff Epler
eed3387f4e
stm32: canio: Fix message cancellation
...
.. it's necessary to wait for a cancellation request to actually free
the respective Tx mailbox
2020-10-06 20:12:10 -05:00
Jeff Epler
abe0405d6e
stm32: canio: Fix canio.CAN.restart()
2020-10-06 20:12:06 -05:00
Jeff Epler
e5a0af9216
stm32: canio: When Tx mailboxes are full, cancel an old message
...
.. also add the 8ms wait for transmission that the atmel sam port
has
2020-10-06 20:11:58 -05:00