USBH: moved definition of driver to LLD

This commit is contained in:
Diego Ismirlian 2017-07-09 18:29:44 -03:00
parent c900c951a3
commit c938866844
2 changed files with 7 additions and 8 deletions

View File

@ -105,6 +105,13 @@ static void _try_commit_np(USBHDriver *host);
static void otg_rxfifo_flush(USBHDriver *usbp);
static void otg_txfifo_flush(USBHDriver *usbp, uint32_t fifo);
#if STM32_USBH_USE_OTG1
USBHDriver USBHD1;
#endif
#if STM32_USBH_USE_OTG2
USBHDriver USBHD2;
#endif
/*===========================================================================*/
/* Little helper functions. */
/*===========================================================================*/

View File

@ -62,14 +62,6 @@
#define uerr(f, ...) do {} while(0)
#endif
#if STM32_USBH_USE_OTG1
USBHDriver USBHD1;
#endif
#if STM32_USBH_USE_OTG2
USBHDriver USBHD2;
#endif
static void _classdriver_process_device(usbh_device_t *dev);
static bool _classdriver_load(usbh_device_t *dev, uint8_t class,
uint8_t subclass, uint8_t protocol, uint8_t *descbuff, uint16_t rem);