MaJerle / stm32-usart-uart-dma-rx-tx

STM32 examples for USART using DMA for efficient RX and TX transmission
MIT License
1.3k stars 322 forks source link

when dma transfer completed,is it need to reset dma memory address and datalength? #26

Closed gqhyuhuofei closed 1 year ago

gqhyuhuofei commented 1 year ago

when dma transfer completed,is it need to reset dma memory address and data length? I can't find these code given above.

MaJerle commented 1 year ago

If you are in circular mode, them hardware takes care of that.

gqhyuhuofei commented 1 year ago

oh,I see it,thanks

MaJerle commented 1 year ago

It would be useless to have circular mode, if you have to set new values. This is then simple normal mode.

Hope it makes sense.