mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-06-14 09:59:28 -04:00
Move some GPDMA configuration to application processor.
This commit is contained in:
parent
556085b3e3
commit
6ef8b19bf1
2 changed files with 6 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue