mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-11-29 07:56:43 -05:00
Start audio DMA only in apps that use audio (#1982)
* Start audio DMA only in apps that use audio * Rename main.cpp to main.cpp.unuse * shrink_tx_buffer fix for transfers_per_buffer==1 scenario
This commit is contained in:
parent
3c489e1a81
commit
0b2d5f75cc
16 changed files with 67 additions and 27 deletions
|
|
@ -28,14 +28,8 @@
|
|||
|
||||
#include "gpdma.hpp"
|
||||
|
||||
#include "audio_dma.hpp"
|
||||
|
||||
static void init() {
|
||||
audio::dma::init();
|
||||
audio::dma::configure();
|
||||
audio::dma::enable();
|
||||
|
||||
nvicEnableVector(DMA_IRQn, CORTEX_PRIORITY_MASK(LPC_DMA_IRQ_PRIORITY));
|
||||
// Audio DMA initialization was moved to baseband proc's that actually use DMA audio, to save memory.
|
||||
}
|
||||
|
||||
static void halt() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue