STM32 usb: fixing missing header file

Fixes #13838
pull/13846/head
Martin Kojtal 2020-11-03 11:19:13 +00:00
parent 798c3c5f4f
commit 097adb57a2
1 changed files with 4 additions and 1 deletions

View File

@ -175,10 +175,13 @@ USBPhyHw::~USBPhyHw()
}
#if defined(TARGET_STM32F1)
#include "drivers/DigitalOut.h"
void USB_reenumerate()
{
// Force USB_DP pin (with external pull up) to 0
DigitalOut usb_dp_pin(USB_DP, 0) ;
mbed::DigitalOut usb_dp_pin(USB_DP, 0) ;
wait_us(10000); // 10ms
}
#endif