summaryrefslogtreecommitdiff
path: root/supervisor/usb.h
diff options
context:
space:
mode:
authorScott Shawcroft <scott@adafruit.com>2020-07-29 10:47:24 -0700
committerGitHub <noreply@github.com>2020-07-29 10:47:24 -0700
commitb76d37f24a3f1d8e26e080ed9b88e05af6dfae5c (patch)
treeff13b3c6131c969c54d5d22e5160f9898a356373 /supervisor/usb.h
parent05a1519e5d1f508ab02c27da5f30eeb87ed56819 (diff)
parent65c22aa4347abc145493f44a4bc8d91a4f200860 (diff)
Merge pull request #3223 from dhalbert/unmount-before-reset
storage.erase_filesystem(): disconnect from USB and wait 1 second before resetting
Diffstat (limited to 'supervisor/usb.h')
-rw-r--r--supervisor/usb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/supervisor/usb.h b/supervisor/usb.h
index 2a447c368..0dead3e26 100644
--- a/supervisor/usb.h
+++ b/supervisor/usb.h
@@ -45,6 +45,7 @@ void init_usb_hardware(void);
// Shared implementation.
bool usb_enabled(void);
void usb_init(void);
+void usb_disconnect(void);
// Propagate plug/unplug events to the MSC logic.
void usb_msc_mount(void);