plusk01 / airdamon_f3

Be the Matt Damon of the skies
2 stars 1 forks source link

USART Rx_DMA_IRQn vs USART_IT_RXNE #8

Open plusk01 opened 5 years ago

plusk01 commented 5 years ago

Not only does airbourne_f4 have an interrupt on USART_IT_RXNE via USARTx_IRQn (like airdamon_f3 does), it has an interrupt on Rx_DMA_IRQn.

What is the benefit of this? This seems redundant? The DMA is already transferring the received data for us behind the scenes. Maybe it is conceivable that since DMA is reading from RDR and clearing the RXNE flag that there may be times when the interrupt isn't able to be fired?

plusk01 commented 5 years ago

See also https://github.com/rosflight/airbourne_f4/issues/31