Skip to content

Commit

Permalink
fix usb for h562 again
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippMolitor committed Dec 23, 2024
1 parent 009d7f4 commit 1bff7fe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/stm32/usbfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,12 @@
#define USB_IRQn USB_UCPD1_2_IRQn
#endif

#if CONFIG_MACH_STM32H5
#if CONFIG_MACH_STM32H505
#define USB_IRQn USB_DRD_FS_IRQn
#define USB_BASE USB_DRD_FS_BASE
#elif CONFIG_MACH_STM32H562
#define USB_IRQn USB_DRD_FS_IRQn
#define USB_BASE USB_DRD_BASE
#endif

#define USB USB_DRD_FS
Expand Down

0 comments on commit 1bff7fe

Please sign in to comment.