Skip to content

Commit

Permalink
Stop audio DMA in baseband::shutdown() (#2011)
Browse files Browse the repository at this point in the history
  • Loading branch information
NotherNgineer authored Mar 19, 2024
1 parent c5f73cf commit b53c8e1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions firmware/baseband/baseband.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include "portapack_dma.hpp"

#include "gpdma.hpp"
#include "audio_dma.hpp"

static void init() {
// Audio DMA initialization was moved to baseband proc's that actually use DMA audio, to save memory.
Expand Down Expand Up @@ -65,6 +66,8 @@ void __late_init(void) {
void _default_exit(void) {
// TODO: Is this complete?

audio::dma::disable();

nvicDisableVector(DMA_IRQn);

chSysDisable();
Expand Down

0 comments on commit b53c8e1

Please sign in to comment.