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();