diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-10-28 11:29:09 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-10-28 11:29:09 +0200 |
commit | f37af779bb836faa7571b7d47036f36f71319aca (patch) | |
tree | 17f86baa284dd9a67770e052cc6d3383afd27159 /stm32f091/setup.c | |
parent | 1cac46e7701ef2783aea13d55261582f4d91f2fa (diff) |
use circular dma buffer for rx
Diffstat (limited to 'stm32f091/setup.c')
-rw-r--r-- | stm32f091/setup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stm32f091/setup.c b/stm32f091/setup.c index 1971809..3bf331f 100644 --- a/stm32f091/setup.c +++ b/stm32f091/setup.c @@ -53,7 +53,7 @@ DMA_HandleTypeDef hdma_usart1_rx = { .Init.MemInc = DMA_MINC_ENABLE, .Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE, .Init.MemDataAlignment = DMA_MDATAALIGN_BYTE, - .Init.Mode = DMA_NORMAL, + .Init.Mode = DMA_CIRCULAR, .Init.Priority = DMA_PRIORITY_LOW, }; |