From 66320c39d4fa62bd322c85734ab62fc627457caa Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Fri, 14 Aug 2015 12:20:45 -0700 Subject: [PATCH] Restore missing halInit() call during M4 __late_init(). --- firmware/baseband/main.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/firmware/baseband/main.cpp b/firmware/baseband/main.cpp index eb048ace..58d72545 100755 --- a/firmware/baseband/main.cpp +++ b/firmware/baseband/main.cpp @@ -654,6 +654,15 @@ static __attribute__((noreturn)) msg_t rssi_fn(void *arg) { extern "C" { void __late_init(void) { + /* + * System initializations. + * - HAL initialization, this also initializes the configured device drivers + * and performs the board-specific initializations. + * - Kernel initialization, the main() function becomes a thread and the + * RTOS is active. + */ + halInit(); + /* After this call, scheduler, systick, heap, etc. are available. */ /* By doing chSysInit() here, it runs before C++ constructors, which may * require the heap.