stm32g0: add stm32g0b0 support

Signed-off-by: Alex Voinea <voinea.dragos.alexandru@gmail.com>
This commit is contained in:
Alex Voinea
2022-12-12 22:14:09 +01:00
committed by KevinOConnor
parent 9d668d63a7
commit e33b41abaa
4 changed files with 32 additions and 15 deletions

View File

@@ -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