Skip to content

Commit 097adb5

Browse files
committed
STM32 usb: fixing missing header file
Fixes #13838
1 parent 798c3c5 commit 097adb5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

targets/TARGET_STM/USBPhy_STM32.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,10 +175,13 @@ USBPhyHw::~USBPhyHw()
175175
}
176176

177177
#if defined(TARGET_STM32F1)
178+
179+
#include "drivers/DigitalOut.h"
180+
178181
void USB_reenumerate()
179182
{
180183
// Force USB_DP pin (with external pull up) to 0
181-
DigitalOut usb_dp_pin(USB_DP, 0) ;
184+
mbed::DigitalOut usb_dp_pin(USB_DP, 0) ;
182185
wait_us(10000); // 10ms
183186
}
184187
#endif

0 commit comments

Comments
 (0)