Skip to content

Commit 81a6306

Browse files
committed
fix: core: STM32U5xx USB definition
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent dd8cbcd commit 81a6306

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

cores/arduino/stm32/stm32_def.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,15 @@
7575
#define DAC1 DAC
7676
#endif
7777

78+
#ifdef USB_OTG_FS
79+
#if !defined(__HAL_RCC_USB_OTG_FS_CLK_DISABLE) && defined(__HAL_RCC_USB_CLK_DISABLE)
80+
#define __HAL_RCC_USB_OTG_FS_CLK_DISABLE __HAL_RCC_USB_CLK_DISABLE
81+
#endif
82+
#if !defined(__HAL_RCC_USB_OTG_FS_CLK_ENABLE) && defined(__HAL_RCC_USB_CLK_ENABLE)
83+
#define __HAL_RCC_USB_OTG_FS_CLK_ENABLE __HAL_RCC_USB_CLK_ENABLE
84+
#endif
85+
#endif
86+
7887
/* STM32G0xx defined USB_DRD_FS */
7988
#if !defined(USB ) && defined(USB_DRD_FS)
8089
#define USB USB_DRD_FS

0 commit comments

Comments
 (0)