mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-10-01 01:26:06 -04:00
Stop audio DMA in baseband::shutdown() (#2011)
This commit is contained in:
parent
c5f73cf8f4
commit
b53c8e1f80
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user