Skip to content

Commit

Permalink
Merge pull request #13846 from 0xc0170/fix-stm32-usb-header
Browse files Browse the repository at this point in the history
STM32 usb: fixing missing header file
  • Loading branch information
0xc0170 authored Nov 5, 2020
2 parents 50fc0c5 + 097adb5 commit 61bed01
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion targets/TARGET_STM/USBPhy_STM32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 61bed01

Please sign in to comment.