Stop audio DMA in baseband::shutdown() (#2011)

This commit is contained in:
Mark Thompson 2024-03-18 23:58:23 -05:00 committed by GitHub
parent c5f73cf8f4
commit b53c8e1f80
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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.
@ -65,6 +66,8 @@ void __late_init(void) {
void _default_exit(void) {
// TODO: Is this complete?
audio::dma::disable();
nvicDisableVector(DMA_IRQn);
chSysDisable();