fix(radio): USART with half-duplex and RX DMA (#6637)
This commit is contained in:
@@ -313,8 +313,10 @@ void stm32_usart_init_rx_dma(const stm32_usart_t* usart, const void* buffer, uin
|
||||
// Disable IRQ based RX
|
||||
LL_USART_DisableIT_RXNE(usart->USARTx);
|
||||
|
||||
// In case TX DMA is used and IDLE IRQ is not, disable the ISR completely
|
||||
if (usart->txDMA && !LL_USART_IsEnabledIT_IDLE(usart->USARTx)) {
|
||||
// In case TX DMA is used, IDLE IRQ is not, and not half-duplex,
|
||||
// disable the ISR completely
|
||||
if (usart->txDMA && !LL_USART_IsEnabledIT_IDLE(usart->USARTx) &&
|
||||
!IS_HALF_DUPLEX(usart)) {
|
||||
NVIC_DisableIRQ(usart->IRQn);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user