Skip to content

Commit 159f6b9

Browse files
committed
fix(c0): GPIO_AF7_USART3 missing
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent e0147d5 commit 159f6b9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

libraries/SrcWrapper/inc/stm32_def.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,11 @@ __STATIC_INLINE void LL_RTC_SetBinMixBCDU(RTC_TypeDef *RTCx, uint32_t BinMixBcdU
218218
#define GPIO_AF1_SPI1 STM_PIN_AFNUM_MASK
219219
#endif
220220

221+
#if defined(STM32C0xx) && defined(USART3) && !defined(GPIO_AF7_USART3)
222+
#define GPIO_AF7_USART3 ((uint8_t)0x07)
223+
#endif // STM32C0xx && !defined(USART3)
224+
225+
221226
/**
222227
* Libc porting layers
223228
*/

0 commit comments

Comments
 (0)