diff --git a/usb/device/targets/TARGET_STM/USBPhy_STM32.cpp b/usb/device/targets/TARGET_STM/USBPhy_STM32.cpp index 7990dc02fb..9f1c78d541 100644 --- a/usb/device/targets/TARGET_STM/USBPhy_STM32.cpp +++ b/usb/device/targets/TARGET_STM/USBPhy_STM32.cpp @@ -525,10 +525,4 @@ void USBPhyHw::_usbisr(void) { instance->events->start_process(); } -//TODO - remove this hack which allows HAL_Delay to work when interrupts are disabled -extern "C" uint32_t HAL_GetTick() -{ - return ticker_read_us(get_us_ticker_data()) / 1000; -} - #endif