Merge pull request #13846 from 0xc0170/fix-stm32-usb-header

STM32 usb: fixing missing header file
pull/13868/head
Martin Kojtal 2020-11-05 14:48:07 +00:00 committed by GitHub
commit 61bed01ee8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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