From ed25f65e8b6fbcaba627f1dbd3bb16d79f01ddb2 Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Thu, 10 Dec 2015 16:29:50 -0800 Subject: [PATCH] Move BasebandThread init into main(). --- firmware/baseband/main.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/firmware/baseband/main.cpp b/firmware/baseband/main.cpp index c003b648c..d5e6fb876 100755 --- a/firmware/baseband/main.cpp +++ b/firmware/baseband/main.cpp @@ -105,10 +105,6 @@ static void init() { rf::rssi::init(); touch::dma::init(); - - baseband_thread.thread_main = chThdSelf(); - baseband_thread.thread_rssi = rssi_thread.start(NORMALPRIO + 10); - baseband_thread.start(NORMALPRIO + 20); } static void shutdown() { @@ -203,6 +199,9 @@ int main(void) { ); /* TODO: Ensure DMAs are configured to point at first LLI in chain. */ + baseband_thread.thread_main = chThdSelf(); + baseband_thread.thread_rssi = rssi_thread.start(NORMALPRIO + 10); + baseband_thread.start(NORMALPRIO + 20); if( baseband_thread.direction() == baseband::Direction::Receive ) { rf::rssi::dma::allocate(4, 400);