mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-11-02 19:36:04 +01:00
stm32g0: add stm32g0b0 support
Signed-off-by: Alex Voinea <voinea.dragos.alexandru@gmail.com>
This commit is contained in:
committed by
KevinOConnor
parent
9d668d63a7
commit
e33b41abaa
@@ -87,8 +87,10 @@
|
||||
#endif
|
||||
|
||||
#if CONFIG_MACH_STM32G0
|
||||
// The stm32g0 has slightly different register names
|
||||
#define USART2_IRQn USART2_LPUART2_IRQn
|
||||
// Some of the stm32g0 MCUs have slightly different register names
|
||||
#ifdef LPUART2
|
||||
#define USART2_IRQn USART2_LPUART2_IRQn
|
||||
#endif
|
||||
#define USART_CR1_RXNEIE USART_CR1_RXNEIE_RXFNEIE
|
||||
#define USART_CR1_TXEIE USART_CR1_TXEIE_TXFNFIE
|
||||
#define USART_ISR_RXNE USART_ISR_RXNE_RXFNE
|
||||
|
||||
Reference in New Issue
Block a user