summaryrefslogtreecommitdiff
path: root/py
diff options
context:
space:
mode:
authorScott Shawcroft <scott@adafruit.com>2020-12-08 16:30:41 -0800
committerGitHub <noreply@github.com>2020-12-08 16:30:41 -0800
commit57101d7da6151bbbb8417850bea191d21d9be123 (patch)
tree04f571b716c4b28ecba424525bbc48b8d8fd97bd /py
parent93fade24efb964a049e2fcbcfe5cda51008ab079 (diff)
parent0b4bcd9599cc07ff85d6a70297ae86ff3b02cdec (diff)
Merge pull request #3807 from tannewt/sleep_tweaks
Add `board_deinit` for use with sleep
Diffstat (limited to 'py')
-rw-r--r--py/circuitpy_mpconfig.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/py/circuitpy_mpconfig.h b/py/circuitpy_mpconfig.h
index f04112bfc..0bd889ccd 100644
--- a/py/circuitpy_mpconfig.h
+++ b/py/circuitpy_mpconfig.h
@@ -912,6 +912,12 @@ void supervisor_run_background_tasks_if_tick(void);
#define CIRCUITPY_PYSTACK_SIZE 1536
#endif
+
+// Wait this long imediately after startup to see if we are connected to USB.
+#ifndef CIRCUITPY_USB_CONNECTED_SLEEP_DELAY
+#define CIRCUITPY_USB_CONNECTED_SLEEP_DELAY 5
+#endif
+
#define CIRCUITPY_BOOT_OUTPUT_FILE "/boot_out.txt"
#define CIRCUITPY_VERBOSE_BLE 0