From 130927068c9f3f12c8db3b5dfb27221b0c5974b6 Mon Sep 17 00:00:00 2001 From: Russ Butler Date: Tue, 31 Jul 2018 16:32:46 -0500 Subject: [PATCH] Remove HAL_GetTick from ST USBPhy Remove the function HAL_GetTick from the ST USBPhy driver. This is no longer needed as that change has been made on master. --- usb/device/targets/TARGET_STM/USBPhy_STM32.cpp | 6 ------ 1 file changed, 6 deletions(-) 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