Skip to content

Commit

Permalink
Merge pull request #119 from dismirlian/usbh_devel
Browse files Browse the repository at this point in the history
USBH: moved declaration of driver to LLD
  • Loading branch information
fpoussin committed Jun 15, 2017
2 parents ca686a5 + d2c155b commit 4092650
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
8 changes: 0 additions & 8 deletions os/hal/include/hal_usbh.h
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down
9 changes: 9 additions & 0 deletions os/hal/ports/STM32/LLD/USBHv1/hal_usbh_lld.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit 4092650

Please sign in to comment.