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) {