stm32: Add initial support for STM32WL MCUs.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George
2021-02-22 11:55:12 +11:00
parent 9127e63708
commit e0a0719416
23 changed files with 316 additions and 62 deletions

View File

@@ -102,7 +102,7 @@ void uart_tx_strn(pyb_uart_obj_t *uart_obj, const char *str, uint len);
static inline bool uart_tx_avail(pyb_uart_obj_t *self) {
#if defined(STM32F4)
return self->uartx->SR & USART_SR_TXE;
#elif defined(STM32H7)
#elif defined(STM32H7) || defined(STM32WL)
return self->uartx->ISR & USART_ISR_TXE_TXFNF;
#else
return self->uartx->ISR & USART_ISR_TXE;