Skip to content

Commit

Permalink
Fix #1982 (enable DMA interrupt for all apps) (#1987)
Browse files Browse the repository at this point in the history
  • Loading branch information
NotherNgineer committed Mar 13, 2024
1 parent 61dc8a0 commit 999f9e2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions firmware/baseband/audio_dma.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,15 +203,13 @@ 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() {
gpdma_channel_i2s0_rx.set_handlers(rx_transfer_complete, rx_error);
// LPC_GPDMA->SYNC |= (1 << gpdma_rx_peripheral);
configure_rx();
enable_rx();
nvicEnableVector(DMA_IRQn, CORTEX_PRIORITY_MASK(LPC_DMA_IRQ_PRIORITY));
}

void disable() {
Expand Down
1 change: 1 addition & 0 deletions firmware/baseband/baseband.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 999f9e2

Please sign in to comment.