MCPcopy Create free account
hub / github.com/OpenStickCommunity/GP2040-CE / shutdown

Method shutdown

src/usbhostmanager.cpp:28–32  ·  view source on GitHub ↗

Shut down the USB bus if we are running USB right now

Source from the content-addressed store, hash-verified

26
27// Shut down the USB bus if we are running USB right now
28void USBHostManager::shutdown() {
29 if ( tuh_ready ) {
30 tuh_deinit(BOARD_TUH_RHPORT);
31 }
32}
33
34void USBHostManager::pushListener(USBListener * usbListener) { // If anything needs to update in the gpconfig driver
35 listeners.push_back(usbListener);

Callers 1

rebootMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected