aboutsummaryrefslogtreecommitdiff
path: root/stm32f091/setup.c
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-10-28 11:29:09 +0200
committerlonkaars <loek@pipeframe.xyz>2022-10-28 11:29:09 +0200
commitf37af779bb836faa7571b7d47036f36f71319aca (patch)
tree17f86baa284dd9a67770e052cc6d3383afd27159 /stm32f091/setup.c
parent1cac46e7701ef2783aea13d55261582f4d91f2fa (diff)
use circular dma buffer for rx
Diffstat (limited to 'stm32f091/setup.c')
-rw-r--r--stm32f091/setup.c2
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,
};