USBH: moved declaration of driver to LLD

This commit is contained in:
Diego Ismirlian 2017-06-09 11:07:20 -03:00
parent 4483baab02
commit d2c155b4cf
2 changed files with 9 additions and 8 deletions

View File

@ -269,14 +269,6 @@ struct USBHDriver {
/* External declarations. */
/*===========================================================================*/
#if STM32_USBH_USE_OTG1
extern USBHDriver USBHD1;
#endif
#if STM32_USBH_USE_OTG2
extern USBHDriver USBHD2;
#endif
/*===========================================================================*/
/* Main driver API. */

View File

@ -149,6 +149,15 @@ uint8_t usbh_lld_roothub_get_statuschange_bitmap(USBHDriver *usbh);
#define USBH_LLD_DECLARE_STRUCT_MEMBER(member) member __attribute__((aligned(4)))
#endif
#if STM32_USBH_USE_OTG1
extern USBHDriver USBHD1;
#endif
#if STM32_USBH_USE_OTG2
extern USBHDriver USBHD2;
#endif
#endif
#endif /* HAL_USBH_LLD_H */