Restore missing halInit() call during M4 __late_init().

This commit is contained in:
Jared Boone 2015-08-14 12:20:45 -07:00
parent 14ada9e132
commit 66320c39d4

View File

@ -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.