mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-10-16 13:40:59 +00:00
Move init/configure details into RSSI/BasebandThread classes.
This commit is contained in:
@@ -36,6 +36,9 @@ Thread* RSSIThread::start(const tprio_t priority) {
|
||||
}
|
||||
|
||||
void RSSIThread::run() {
|
||||
rf::rssi::init();
|
||||
rf::rssi::dma::allocate(4, 400);
|
||||
|
||||
RSSIStatisticsCollector stats;
|
||||
|
||||
while(true) {
|
||||
@@ -53,4 +56,6 @@ void RSSIThread::run() {
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
rf::rssi::dma::free();
|
||||
}
|
||||
|
Reference in New Issue
Block a user