Move init/configure details into RSSI/BasebandThread classes.

This commit is contained in:
Jared Boone 2015-12-10 16:32:00 -08:00
parent ed25f65e8b
commit 818790e734
3 changed files with 20 additions and 20 deletions

View file

@ -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();
}