Skip to content

Commit 44bf5d5

Browse files
facchinmpennam
authored andcommitted
usbhost: don't deinit usb phy if running on M4
1 parent 2080938 commit 44bf5d5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libraries/USBHOST/src/USBHost.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ uint32_t USBHost::Init(uint8_t id, const tusbh_class_reg_t class_table[]) {
3131

3232
if (id == USB_CORE_ID_HS) {
3333

34+
#ifndef CORE_CM4
3435
get_usb_phy()->deinit();
36+
#endif
3537
mbed::DigitalOut otg(PJ_6, 1);
3638

3739
_hs = tusb_get_host(USB_CORE_ID_HS);

0 commit comments

Comments
 (0)