mirror of
https://github.com/micropython/micropython.git
synced 2026-01-04 19:20:22 +01:00
stm32: Add initial support for STM32WL MCUs.
Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user