Change baseband, RSSI threads to be more RAII.

This commit is contained in:
Jared Boone 2016-06-24 15:34:49 -07:00
parent 2b7e763619
commit f8a473d56b
6 changed files with 39 additions and 17 deletions

View file

@ -54,9 +54,6 @@ Thread* EventDispatcher::thread_event_loop = nullptr;
void EventDispatcher::run() {
thread_event_loop = chThdSelf();
rssi_thread.start(NORMALPRIO + 10);
baseband_thread.start(NORMALPRIO + 20);
lpc43xx::creg::m0apptxevent::enable();
while(is_running) {