mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-06-03 00:38:24 +00:00
Remove baseband stats tracking code.
It was half-baked, and is getting in the way of a major refactoring.
This commit is contained in:
parent
d41c6ee36a
commit
9444d21c12
@ -24,7 +24,6 @@
|
|||||||
#include "dsp_types.hpp"
|
#include "dsp_types.hpp"
|
||||||
|
|
||||||
#include "baseband.hpp"
|
#include "baseband.hpp"
|
||||||
#include "baseband_stats_collector.hpp"
|
|
||||||
#include "baseband_sgpio.hpp"
|
#include "baseband_sgpio.hpp"
|
||||||
#include "baseband_dma.hpp"
|
#include "baseband_dma.hpp"
|
||||||
|
|
||||||
@ -94,13 +93,6 @@ void BasebandThread::run() {
|
|||||||
);
|
);
|
||||||
//baseband::dma::allocate(4, 2048);
|
//baseband::dma::allocate(4, 2048);
|
||||||
|
|
||||||
BasebandStatsCollector stats {
|
|
||||||
chSysGetIdleThread(),
|
|
||||||
thread_main,
|
|
||||||
thread_rssi,
|
|
||||||
chThdSelf()
|
|
||||||
};
|
|
||||||
|
|
||||||
while(true) {
|
while(true) {
|
||||||
// TODO: Place correct sampling rate into buffer returned here:
|
// TODO: Place correct sampling rate into buffer returned here:
|
||||||
const auto buffer_tmp = baseband::dma::wait_for_rx_buffer();
|
const auto buffer_tmp = baseband::dma::wait_for_rx_buffer();
|
||||||
@ -112,13 +104,6 @@ void BasebandThread::run() {
|
|||||||
if( baseband_processor ) {
|
if( baseband_processor ) {
|
||||||
baseband_processor->execute(buffer);
|
baseband_processor->execute(buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
stats.process(buffer,
|
|
||||||
[](const BasebandStatistics& statistics) {
|
|
||||||
const BasebandStatisticsMessage message { statistics };
|
|
||||||
shared_memory.application_queue.push(message);
|
|
||||||
}
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -40,9 +40,6 @@ public:
|
|||||||
return baseband::Direction::Receive;
|
return baseband::Direction::Receive;
|
||||||
}
|
}
|
||||||
|
|
||||||
Thread* thread_main { nullptr };
|
|
||||||
Thread* thread_rssi { nullptr };
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
BasebandProcessor* baseband_processor { nullptr };
|
BasebandProcessor* baseband_processor { nullptr };
|
||||||
|
|
||||||
|
@ -54,8 +54,7 @@ Thread* EventDispatcher::thread_event_loop = nullptr;
|
|||||||
void EventDispatcher::run() {
|
void EventDispatcher::run() {
|
||||||
thread_event_loop = chThdSelf();
|
thread_event_loop = chThdSelf();
|
||||||
|
|
||||||
baseband_thread.thread_main = chThdSelf();
|
rssi_thread.start(NORMALPRIO + 10);
|
||||||
baseband_thread.thread_rssi = rssi_thread.start(NORMALPRIO + 10);
|
|
||||||
baseband_thread.start(NORMALPRIO + 20);
|
baseband_thread.start(NORMALPRIO + 20);
|
||||||
|
|
||||||
lpc43xx::creg::m0apptxevent::enable();
|
lpc43xx::creg::m0apptxevent::enable();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user