From 999f9e2ded8d2a07c322e4792669c2d2177a288e Mon Sep 17 00:00:00 2001 From: Mark Thompson <129641948+NotherNgineer@users.noreply.github.com> Date: Wed, 13 Mar 2024 10:57:35 -0500 Subject: [PATCH] Fix #1982 (enable DMA interrupt for all apps) (#1987) --- firmware/baseband/audio_dma.cpp | 2 -- firmware/baseband/baseband.cpp | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/firmware/baseband/audio_dma.cpp b/firmware/baseband/audio_dma.cpp index 356faea3..f8e843b0 100644 --- a/firmware/baseband/audio_dma.cpp +++ b/firmware/baseband/audio_dma.cpp @@ -203,7 +203,6 @@ void init_audio_out() { // LPC_GPDMA->SYNC |= (1 << gpdma_tx_peripheral); configure_tx(); enable_tx(); - nvicEnableVector(DMA_IRQn, CORTEX_PRIORITY_MASK(LPC_DMA_IRQ_PRIORITY)); } void init_audio_in() { @@ -211,7 +210,6 @@ void init_audio_in() { // LPC_GPDMA->SYNC |= (1 << gpdma_rx_peripheral); configure_rx(); enable_rx(); - nvicEnableVector(DMA_IRQn, CORTEX_PRIORITY_MASK(LPC_DMA_IRQ_PRIORITY)); } void disable() { diff --git a/firmware/baseband/baseband.cpp b/firmware/baseband/baseband.cpp index aac665fd..02c14b7d 100644 --- a/firmware/baseband/baseband.cpp +++ b/firmware/baseband/baseband.cpp @@ -30,6 +30,7 @@ static void init() { // Audio DMA initialization was moved to baseband proc's that actually use DMA audio, to save memory. + nvicEnableVector(DMA_IRQn, CORTEX_PRIORITY_MASK(LPC_DMA_IRQ_PRIORITY)); } static void halt() {