mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-10-19 07:42:15 +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:
@@ -23,6 +23,8 @@
|
||||
|
||||
#include "audio_output.hpp"
|
||||
|
||||
#include "event_m4.hpp"
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
void WidebandFMAudio::execute(const buffer_c8_t& buffer) {
|
||||
@@ -122,3 +124,8 @@ void WidebandFMAudio::capture_config(const CaptureConfigMessage& message) {
|
||||
audio_output.set_stream(nullptr);
|
||||
}
|
||||
}
|
||||
|
||||
void run() {
|
||||
EventDispatcher event_dispatcher { std::make_unique<WidebandFMAudio>() };
|
||||
event_dispatcher.run();
|
||||
}
|
||||
|
Reference in New Issue
Block a user