mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-10-18 09:01:51 +00:00
Move some GPDMA configuration to application processor.
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user