Fix #1982 (enable DMA interrupt for all apps) (#1987)

This commit is contained in:
Mark Thompson 2024-03-13 10:57:35 -05:00 committed by GitHub
parent 61dc8a0225
commit 999f9e2ded
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 2 deletions

View File

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

View File

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