mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-01-11 15:29:28 -05:00
Move some GPDMA configuration to application processor.
This commit is contained in:
parent
556085b3e3
commit
6ef8b19bf1
@ -21,6 +21,7 @@
|
|||||||
|
|
||||||
#include "portapack.hpp"
|
#include "portapack.hpp"
|
||||||
#include "portapack_hal.hpp"
|
#include "portapack_hal.hpp"
|
||||||
|
#include "portapack_dma.hpp"
|
||||||
#include "portapack_persistent_memory.hpp"
|
#include "portapack_persistent_memory.hpp"
|
||||||
|
|
||||||
#include "hackrf_hal.hpp"
|
#include "hackrf_hal.hpp"
|
||||||
@ -161,9 +162,14 @@ void init() {
|
|||||||
radio::init();
|
radio::init();
|
||||||
|
|
||||||
touch::adc::init();
|
touch::adc::init();
|
||||||
|
|
||||||
|
LPC_CREG->DMAMUX = portapack::gpdma_mux;
|
||||||
|
gpdma::controller.enable();
|
||||||
}
|
}
|
||||||
|
|
||||||
void shutdown() {
|
void shutdown() {
|
||||||
|
gpdma::controller.disable();
|
||||||
|
|
||||||
display.shutdown();
|
display.shutdown();
|
||||||
|
|
||||||
radio::disable();
|
radio::disable();
|
||||||
|
@ -35,8 +35,6 @@ static void init() {
|
|||||||
audio::dma::configure();
|
audio::dma::configure();
|
||||||
audio::dma::enable();
|
audio::dma::enable();
|
||||||
|
|
||||||
LPC_CREG->DMAMUX = portapack::gpdma_mux;
|
|
||||||
gpdma::controller.enable();
|
|
||||||
nvicEnableVector(DMA_IRQn, CORTEX_PRIORITY_MASK(LPC_DMA_IRQ_PRIORITY));
|
nvicEnableVector(DMA_IRQn, CORTEX_PRIORITY_MASK(LPC_DMA_IRQ_PRIORITY));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user