Lucian Copeland
633d83cc3e
Merge remote-tracking branch 'upstream/main' into sleep-revamp
2021-05-17 18:57:10 -04:00
Scott Shawcroft
689ec86225
Merge pull request #4754 from dhalbert/fix-endpoint-checking
...
Fix endpoint checking; Clean up safe mode printing
2021-05-14 11:25:01 -07:00
Lucian Copeland
295103bb31
Merge remote-tracking branch 'upstream/main' into sleep-revamp
2021-05-13 16:22:12 -04:00
Dan Halbert
0651ef17dd
Fix endpoint checking; Clean up safe mode printing.
2021-05-12 15:53:52 -04:00
Lucian Copeland
0d3c5222d8
Merge remote-tracking branch 'upstream/main' into stm-alarm
2021-05-10 17:30:33 -04:00
Dan Halbert
4b45c37516
Do USB init even in safe mode
2021-05-08 11:03:05 -04:00
Dan Halbert
ebf9dcb47a
Merge pull request #4689 from dhalbert/dynamic-usb-descriptors
...
Dynamic USB descriptors
2021-05-06 13:51:38 -04:00
Lucian Copeland
f38f5dbce6
Set reload reason when reloaded from repl
2021-05-05 17:02:32 -04:00
Lucian Copeland
17ee507f09
Remove overwrite of run_reason in main
...
When `reload_requested` is detected, the run reason will no longer be
automatically overwritten as an AUTO_RELOAD, making SUPERVISOR_RELOAD a
detectable reload reason. Autoreload now sets the reload reason itself.
2021-05-04 17:04:24 -04:00
Dan Halbert
abfb020d41
MSC, CDC, HID keyboard definitely working
2021-04-29 17:41:43 -04:00
Dan Halbert
f06d54524d
merge from adafruit
2021-04-28 23:48:26 -04:00
Lucian Copeland
9feef41c82
Merge remote-tracking branch 'upstream/main' into stm-alarm
2021-04-28 15:10:55 -04:00
Dan Halbert
587aedd14f
rework storage allocation
2021-04-28 13:00:44 -04:00
Dan Halbert
d4d96bb25f
Merge pull request #4236 from jun2sak/nrf52-sleep
...
sleep and wakeup for nrf52
2021-04-28 12:11:31 -04:00
Dan Halbert
8500e846c6
partially working
2021-04-27 23:53:23 -04:00
Dan Halbert
f98a54628b
wip: compiles
2021-04-27 14:37:36 -04:00
Dan Halbert
c26e49c2e6
wip: starting to try to compile
2021-04-25 23:17:41 -04:00
Dan Halbert
9d1fcc3b14
merge from main
2021-04-25 10:27:52 -04:00
jun2sak
7accb8b173
modify copyright notice.
2021-04-25 19:57:21 +09:00
Artyom Skrobov
4e3c1d4a4c
[build] Allow USB to be set to 0
...
Unify USB-related makefile var and C def as CIRCUITPY_USB.
Always define it as 0 or 1, same as all other settings.
USB_AVAILABLE was conditionally defined in supervisor.mk,
but never actually used to #ifdef USB-related code.
Loosely related to #4546
2021-04-23 11:13:34 -04:00
Dan Halbert
2b4c88d633
wip: partial HID, still needs rework
2021-04-23 00:18:05 -04:00
Lucian Copeland
7eeea869ac
Fix light sleep global alarms, API revisions
2021-04-15 15:02:42 -04:00
Dan Halbert
4a7e129287
wip: latent usb device enabling/disabling
2021-04-13 23:33:44 -04:00
jun2sak
6e9429d779
soft reboot for pretending deep sleep.
2021-04-12 20:53:14 +09:00
Lucian Copeland
15764b4c24
Merge remote-tracking branch 'upstream/main' into nrf52-sleep
2021-04-09 13:48:45 -04:00
Lucian Copeland
17585e1e07
Clean up API
2021-04-02 14:08:48 -04:00
Lucian Copeland
d35a307ffa
Merge branch 'sleep-api-update' into stm-alarm
2021-03-29 12:27:25 -04:00
Lucian Copeland
00178ca5e0
Sleep API changes, redundancy fix
2021-03-27 14:14:57 -04:00
Lucian Copeland
529fb52309
Style changes and wakeup detection
2021-03-27 13:16:12 -04:00
Lucian Copeland
6b2c9985ff
Extract RTC, implement fake RTC deepsleep
2021-03-11 17:50:05 -05:00
jun2sak
3fab9f8b1b
new wait-until-alarm design, don't use System OFF.
2021-03-07 01:09:54 +09:00
Lucian Copeland
f1792c8474
Extract EXTI, create base sleep framework
2021-03-02 11:41:53 -05:00
jun2sak
7bb789625e
use the original port_idle_until_interrupt() if not CIRCUITPY_ALARM.
2021-02-28 16:27:37 +09:00
jun2sak
3e47e00291
address the pretending-to-deep-sleep issue.
2021-02-28 15:57:37 +09:00
jun2sak
fac86c8277
remove unused debug printf's.
2021-02-28 15:34:55 +09:00
jun2sak
9661d67cd3
replace MY_DEBUG_UART -> NRF_DEBUG_PRINT.
2021-02-25 01:49:57 +09:00
jun2sak
057682f776
cleanup.
2021-02-24 00:13:11 +09:00
jun2sak
ec64fa6a29
move dump_xxx functions to debug_uart.c.
2021-02-23 12:16:37 +09:00
jun2sak
1da8b9900a
Merge branch 'main' into nrf52-sleep
2021-02-21 13:35:06 +09:00
jun2sak
26f8f532f1
safe mode fix.
2021-02-21 00:47:07 +09:00
jun2sak
e6350ff834
Initial commit.
2021-02-17 20:53:18 +09:00
Dan Halbert
0b8f1b9a90
wip: usb_cdc.serials
2021-02-15 20:06:18 -05:00
Dan Halbert
25d456a5b8
shrink a couple of builds
2021-02-04 22:15:32 -05:00
hathach
8d7b1f9e8c
add usb_background_schedule()
...
unconditionally schedule usb background after
background_callback_reset()
2021-02-04 16:00:14 +07:00
Scott Shawcroft
fb1e0106b5
Fix press any key message
2021-01-20 19:16:56 -08:00
microDev
0bad6110d4
update wake-alarm implementation
2020-12-31 02:44:20 +05:30
Scott Shawcroft
1fca297a2d
A couple sleep fixes
...
* Better messaging when code is stopped by an auto-reload.
* Auto-reload works during sleeps on ESP32-S2. Ticks wake up the
main task each time.
* Made internal naming consistent. CamelCase Python names are NOT
separated by an underscore.
2020-12-22 16:13:02 -08:00
Dan Halbert
d4e9eea397
mark alarm.wake_alarm during gc sweep
2020-12-22 08:11:01 -08:00
Scott Shawcroft
1ad49d9a18
Add alarm.pin that wakes on pin level
...
Fixes #3787
2020-12-15 18:12:59 -08:00
Dan Halbert
cf938983e9
SleepMemory + set alarm.wake_alarm
2020-12-11 08:10:26 -05:00