Skip to content

Commit 15da5f2

Browse files
committed
chore(wba): workaround for missing GPIO_AF4_USB_OTG_HS
Ref: STMicroelectronics/stm32wbaxx-hal-driver#2 Signed-off-by: Frederic Pillon <[email protected]>
1 parent a5651c5 commit 15da5f2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libraries/SrcWrapper/inc/stm32_def.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,9 @@ __STATIC_INLINE void LL_RTC_SetBinMixBCDU(RTC_TypeDef *RTCx, uint32_t BinMixBcdU
224224
#define GPIO_AF7_USART3 ((uint8_t)0x07)
225225
#endif // STM32C0xx && !defined(USART3)
226226

227+
#if defined(STM32WBAxx) && defined(USB_OTG_HS) && !defined(GPIO_AF4_USB_OTG_HS)
228+
#define GPIO_AF4_USB_OTG_HS GPIO_AF4_OTG_HS
229+
#endif // STM32WBAxx && defined(USB_OTG_HS) && !defined(GPIO_AF4_USB_OTG_HS)
227230

228231
/**
229232
* Libc porting layers

0 commit comments

Comments
 (0)