From 24b9328e1a793926ba8bfee359ca96fd89658824 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8D=E5=90=83=E6=B2=B9=E7=82=B8=E9=B8=A1?= <1425962791@qq.com> Date: Sun, 8 Feb 2026 11:37:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E4=BC=98=E5=85=88=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Power_Pico/Core/Src/dma.c | 2 +- Power_Pico/Core/Src/spi.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Power_Pico/Core/Src/dma.c b/Power_Pico/Core/Src/dma.c index fd317ef..db883fa 100644 --- a/Power_Pico/Core/Src/dma.c +++ b/Power_Pico/Core/Src/dma.c @@ -45,7 +45,7 @@ void MX_DMA_Init(void) /* DMA interrupt init */ /* DMA1_Stream4_IRQn interrupt configuration */ - HAL_NVIC_SetPriority(DMA1_Stream4_IRQn, 6, 0); + HAL_NVIC_SetPriority(DMA1_Stream4_IRQn, 5, 0); HAL_NVIC_EnableIRQ(DMA1_Stream4_IRQn); /* DMA2_Stream0_IRQn interrupt configuration */ HAL_NVIC_SetPriority(DMA2_Stream0_IRQn, 5, 0); diff --git a/Power_Pico/Core/Src/spi.c b/Power_Pico/Core/Src/spi.c index c7ec692..8d71cd2 100644 --- a/Power_Pico/Core/Src/spi.c +++ b/Power_Pico/Core/Src/spi.c @@ -94,7 +94,7 @@ void HAL_SPI_MspInit(SPI_HandleTypeDef* spiHandle) hdma_spi2_tx.Init.PeriphDataAlignment = DMA_PDATAALIGN_HALFWORD; hdma_spi2_tx.Init.MemDataAlignment = DMA_MDATAALIGN_HALFWORD; hdma_spi2_tx.Init.Mode = DMA_NORMAL; - hdma_spi2_tx.Init.Priority = DMA_PRIORITY_LOW; + hdma_spi2_tx.Init.Priority = DMA_PRIORITY_MEDIUM; hdma_spi2_tx.Init.FIFOMode = DMA_FIFOMODE_DISABLE; if (HAL_DMA_Init(&hdma_spi2_tx) != HAL_OK) {