mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-07-30 01:59:13 -04:00
Give Processors a run() function.
So main() can call it, start a Processor linked in to the baseband binary.
This commit is contained in:
parent
1a5f3a4422
commit
500a651bcf
9 changed files with 57 additions and 15 deletions
|
@ -28,19 +28,8 @@
|
|||
|
||||
#include "gpdma.hpp"
|
||||
|
||||
#include "event_m4.hpp"
|
||||
|
||||
#include "touch_dma.hpp"
|
||||
|
||||
#include "proc_am_audio.hpp"
|
||||
#include "proc_nfm_audio.hpp"
|
||||
#include "proc_wfm_audio.hpp"
|
||||
#include "proc_ais.hpp"
|
||||
#include "proc_wideband_spectrum.hpp"
|
||||
#include "proc_tpms.hpp"
|
||||
#include "proc_ert.hpp"
|
||||
#include "proc_capture.hpp"
|
||||
|
||||
#include "message_queue.hpp"
|
||||
|
||||
#include "utility.hpp"
|
||||
|
@ -90,10 +79,7 @@ static void init() {
|
|||
touch::dma::enable();
|
||||
}
|
||||
|
||||
static void run() {
|
||||
EventDispatcher event_dispatcher { std::make_unique<CaptureProcessor>() };
|
||||
event_dispatcher.run();
|
||||
}
|
||||
extern void run();
|
||||
|
||||
static void halt() {
|
||||
port_disable();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue