Skip to content

Commit

Permalink
more usb registers for stm32h5
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippMolitor committed Aug 13, 2024
1 parent 67f14e8 commit 2c9ca3a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/stm32/usbfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,16 @@

// The stm32g0 and stm32h5 have slightly different register names
#if CONFIG_MACH_STM32G0 || CONFIG_MACH_STM32H5
#if CONFIG_MACH_STM32G0B1
#define USB_IRQn USB_UCPD1_2_IRQn
#if CONFIG_MACH_STM32G0
#define USB USB_DRD_FS
#if CONFIG_MACH_STM32G0B1
#define USB_IRQn USB_UCPD1_2_IRQn
#endif
#endif
#if CONFIG_MACH_STM32H503
#define USB_IRQn USB_DRD_FS_IRQn
#define USB_BASE USB_DRD_FS_BASE
#endif
#define USB USB_DRD_FS
#define USB_PMAADDR USB_DRD_PMAADDR
#define USB_EPADDR_FIELD USB_CHEP_ADDR
#define USB_EP_CTR_RX USB_EP_VTRX
Expand Down

0 comments on commit 2c9ca3a

Please sign in to comment.