From 2c9ca3a276fe649e0babf1f8102d47e5ea76cddc Mon Sep 17 00:00:00 2001 From: Philipp Molitor Date: Wed, 14 Aug 2024 00:58:13 +0200 Subject: [PATCH] more usb registers for stm32h5 --- src/stm32/usbfs.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/stm32/usbfs.c b/src/stm32/usbfs.c index b7bb84825..f44f28585 100644 --- a/src/stm32/usbfs.c +++ b/src/stm32/usbfs.c @@ -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