mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-10-01 01:26:06 -04:00
parent
61dc8a0225
commit
999f9e2ded
@ -203,7 +203,6 @@ void init_audio_out() {
|
|||||||
// LPC_GPDMA->SYNC |= (1 << gpdma_tx_peripheral);
|
// LPC_GPDMA->SYNC |= (1 << gpdma_tx_peripheral);
|
||||||
configure_tx();
|
configure_tx();
|
||||||
enable_tx();
|
enable_tx();
|
||||||
nvicEnableVector(DMA_IRQn, CORTEX_PRIORITY_MASK(LPC_DMA_IRQ_PRIORITY));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void init_audio_in() {
|
void init_audio_in() {
|
||||||
@ -211,7 +210,6 @@ void init_audio_in() {
|
|||||||
// LPC_GPDMA->SYNC |= (1 << gpdma_rx_peripheral);
|
// LPC_GPDMA->SYNC |= (1 << gpdma_rx_peripheral);
|
||||||
configure_rx();
|
configure_rx();
|
||||||
enable_rx();
|
enable_rx();
|
||||||
nvicEnableVector(DMA_IRQn, CORTEX_PRIORITY_MASK(LPC_DMA_IRQ_PRIORITY));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void disable() {
|
void disable() {
|
||||||
|
@ -30,6 +30,7 @@
|
|||||||
|
|
||||||
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.
|
||||||
|
nvicEnableVector(DMA_IRQn, CORTEX_PRIORITY_MASK(LPC_DMA_IRQ_PRIORITY));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void halt() {
|
static void halt() {
|
||||||
|
Loading…
Reference in New Issue
Block a user