mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-13 12:50:47 +00:00
Stop audio DMA in baseband::shutdown() (#2011)
This commit is contained in:
@@ -27,6 +27,7 @@
|
|||||||
#include "portapack_dma.hpp"
|
#include "portapack_dma.hpp"
|
||||||
|
|
||||||
#include "gpdma.hpp"
|
#include "gpdma.hpp"
|
||||||
|
#include "audio_dma.hpp"
|
||||||
|
|
||||||
static void init() {
|
static void init() {
|
||||||
// Audio DMA initialization was moved to baseband proc's that actually use DMA audio, to save memory.
|
// 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) {
|
void _default_exit(void) {
|
||||||
// TODO: Is this complete?
|
// TODO: Is this complete?
|
||||||
|
|
||||||
|
audio::dma::disable();
|
||||||
|
|
||||||
nvicDisableVector(DMA_IRQn);
|
nvicDisableVector(DMA_IRQn);
|
||||||
|
|
||||||
chSysDisable();
|
chSysDisable();
|
||||||
|
Reference in New Issue
Block a user