mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #13846 from 0xc0170/fix-stm32-usb-header
STM32 usb: fixing missing header filepull/13868/head
commit
61bed01ee8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue