Move some GPDMA configuration to application processor.

This commit is contained in:
Jared Boone 2017-05-24 15:42:44 -07:00
parent 556085b3e3
commit 6ef8b19bf1
2 changed files with 6 additions and 2 deletions

View File

@ -21,6 +21,7 @@
#include "portapack.hpp"
#include "portapack_hal.hpp"
#include "portapack_dma.hpp"
#include "portapack_persistent_memory.hpp"
#include "hackrf_hal.hpp"
@ -161,9 +162,14 @@ void init() {
radio::init();
touch::adc::init();
LPC_CREG->DMAMUX = portapack::gpdma_mux;
gpdma::controller.enable();
}
void shutdown() {
gpdma::controller.disable();
display.shutdown();
radio::disable();

View File

@ -35,8 +35,6 @@ static void init() {
audio::dma::configure();
audio::dma::enable();
LPC_CREG->DMAMUX = portapack::gpdma_mux;
gpdma::controller.enable();
nvicEnableVector(DMA_IRQn, CORTEX_PRIORITY_MASK(LPC_DMA_IRQ_PRIORITY));
}