summaryrefslogtreecommitdiff
path: root/Core/Src/sai.c
diff options
context:
space:
mode:
Diffstat (limited to 'Core/Src/sai.c')
-rwxr-xr-xCore/Src/sai.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Core/Src/sai.c b/Core/Src/sai.c
index 9601fc8..b91cd1f 100755
--- a/Core/Src/sai.c
+++ b/Core/Src/sai.c
@@ -120,7 +120,7 @@ void HAL_SAI_MspInit(SAI_HandleTypeDef* saiHandle)
hdma_sai1_a.Init.PeriphDataAlignment = DMA_PDATAALIGN_WORD;
hdma_sai1_a.Init.MemDataAlignment = DMA_MDATAALIGN_WORD;
hdma_sai1_a.Init.Mode = DMA_CIRCULAR;
- hdma_sai1_a.Init.Priority = DMA_PRIORITY_HIGH;
+ hdma_sai1_a.Init.Priority = DMA_PRIORITY_VERY_HIGH;
hdma_sai1_a.Init.FIFOMode = DMA_FIFOMODE_DISABLE;
if (HAL_DMA_Init(&hdma_sai1_a) != HAL_OK)
{
@@ -161,7 +161,7 @@ void HAL_SAI_MspInit(SAI_HandleTypeDef* saiHandle)
hdma_sai1_b.Init.PeriphDataAlignment = DMA_PDATAALIGN_WORD;
hdma_sai1_b.Init.MemDataAlignment = DMA_MDATAALIGN_WORD;
hdma_sai1_b.Init.Mode = DMA_CIRCULAR;
- hdma_sai1_b.Init.Priority = DMA_PRIORITY_HIGH;
+ hdma_sai1_b.Init.Priority = DMA_PRIORITY_VERY_HIGH;
hdma_sai1_b.Init.FIFOMode = DMA_FIFOMODE_DISABLE;
if (HAL_DMA_Init(&hdma_sai1_b) != HAL_OK)
{