mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-23 05:37:40 +00: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:
@@ -25,6 +25,8 @@
|
||||
|
||||
#include "dsp_fir_taps.hpp"
|
||||
|
||||
#include "event_m4.hpp"
|
||||
|
||||
AISProcessor::AISProcessor() {
|
||||
decim_0.configure(taps_11k0_decim_0.taps, 33554432);
|
||||
decim_1.configure(taps_11k0_decim_1.taps, 131072);
|
||||
@@ -62,3 +64,8 @@ void AISProcessor::payload_handler(
|
||||
const AISPacketMessage message { packet };
|
||||
shared_memory.application_queue.push(message);
|
||||
}
|
||||
|
||||
void run() {
|
||||
EventDispatcher event_dispatcher { std::make_unique<AISProcessor>() };
|
||||
event_dispatcher.run();
|
||||
}
|
||||
|
Reference in New Issue
Block a user