mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-12-10 05:30:42 -05: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
|
|
@ -23,6 +23,8 @@
|
|||
|
||||
#include "dsp_fir_taps.hpp"
|
||||
|
||||
#include "event_m4.hpp"
|
||||
|
||||
TPMSProcessor::TPMSProcessor() {
|
||||
decim_0.configure(taps_200k_decim_0.taps, 33554432);
|
||||
decim_1.configure(taps_200k_decim_1.taps, 131072);
|
||||
|
|
@ -55,3 +57,8 @@ void TPMSProcessor::execute(const buffer_c8_t& buffer) {
|
|||
});
|
||||
}
|
||||
}
|
||||
|
||||
void run() {
|
||||
EventDispatcher event_dispatcher { std::make_unique<TPMSProcessor>() };
|
||||
event_dispatcher.run();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue