Commit Graph

9 Commits

Author SHA1 Message Date
Phil Howard cbcd9edd9a Badger2040W: Fix wakeup and quit to launcher button handling. 2023-02-10 22:15:09 +00:00
Phil Howard 5251baf764 Wakeup: Add method to reset latched SR state. 2022-12-20 13:46:02 +00:00
Phil Howard f1e9e00cd5 Inky Frame: Add wakeup SR to lib, fix wakeup bug. 2022-12-20 13:46:02 +00:00
Phil Howard ba100ae069 Wakeup: Disable RTC & enable SR for Inky, always include shift function.
Due to quirks with how QSTRs are passed, conditionally including a function is difficult.

Instead, always include "get_shift_state" but throw a RuntimeError if its use is invalid (no shift register).
2022-12-20 13:46:02 +00:00
ZodiusInfuser 05d26aeecb Wakeup: Add shift register support. 2022-12-20 13:46:02 +00:00
Phil Howard f7781e2696 Wakeup: Fixup crt0.S and runtime.c.
Assert the VSYS_EN pin before copying SRAM and zeroing BSS.

Saves ~142ms of startup time before GPIO input is latched and pin is asserted.
2022-08-08 12:05:18 +01:00
Phil Howard 898e2a1b32 Wakeup: Optionally turn off RTC CLOCK_OUT. 2022-08-08 12:05:18 +01:00
Phil Howard a4b6d86ac7 MicroPython: Port wakeup GPIO latch to asm. 2022-08-08 12:05:18 +01:00
Phil Howard dfa13f2a39 MicroPython: Early wakeup GPIO latch module. 2022-08-08 12:05:18 +01:00