diff --git a/Target/Source/ARMCM3_STM32F1/usb.c b/Target/Source/ARMCM3_STM32F1/usb.c index c2dbaab8..559e2008 100644 --- a/Target/Source/ARMCM3_STM32F1/usb.c +++ b/Target/Source/ARMCM3_STM32F1/usb.c @@ -31,6 +31,7 @@ ****************************************************************************************/ #include "boot.h" /* bootloader generic header */ #if (BOOT_COM_USB_ENABLE > 0) +#include "usb.h" /* USB driver module */ #include "usb_lib.h" /* USB library driver header */ #include "usb_desc.h" /* USB descriptor header */ #include "usb_pwr.h" /* USB power management header */ @@ -72,14 +73,6 @@ typedef struct } tFifoPipe; /**< USB pipe fifo type */ -/**************************************************************************************** -* Hook functions -****************************************************************************************/ -extern void UsbEnterLowPowerModeHook(void); -extern void UsbLeaveLowPowerModeHook(void); -extern void UsbConnectHook(blt_bool connect); - - /**************************************************************************************** * Function prototypes ****************************************************************************************/ diff --git a/Target/Source/ARMCM4_TM4C/usb.c b/Target/Source/ARMCM4_TM4C/usb.c index 8e85c91b..11843eaa 100644 --- a/Target/Source/ARMCM4_TM4C/usb.c +++ b/Target/Source/ARMCM4_TM4C/usb.c @@ -33,6 +33,7 @@ #if (BOOT_COM_USB_ENABLE > 0) #include #include +#include "usb.h" #include "usblib.h" #include "usbdevice.h" #include "usbdbulk.h" @@ -74,14 +75,6 @@ typedef struct } tFifoPipe; /**< USB pipe fifo type */ -/**************************************************************************************** -* Hook functions -****************************************************************************************/ -extern void UsbEnterLowPowerModeHook(void); -extern void UsbLeaveLowPowerModeHook(void); -extern void UsbConnectHook(blt_bool connect); - - /**************************************************************************************** * Function prototypes ****************************************************************************************/