rusefi/firmware/main.cpp

36 lines
650 B
C++
Raw Normal View History

2015-07-10 06:01:56 -07:00
/**
* @file main.cpp
* @brief C++ main entry point
*
* @date Nov 29, 2012
2020-01-13 18:57:43 -08:00
* @author Andrey Belomutskiy, (c) 2012-2020
2015-07-10 06:01:56 -07:00
* http://rusefi.com/
*/
#include "pch.h"
2022-09-07 12:56:45 -07:00
2015-07-10 06:01:56 -07:00
#include "rusefi.h"
#include "mpu_util.h"
int main(void) {
// Maybe your board needs to do something special before HAL init
preHalInit();
2015-07-10 06:01:56 -07:00
/*
* ChibiOS/RT initialization
*/
halInit();
chSysInit();
/**
* most basic MCU initialization - no configuration access, no external hardware access
*/
baseMCUInit();
2015-07-10 06:01:56 -07:00
runRusEfi();
return 0;
}
2021-07-08 19:53:30 -07:00
// Weak linked default implementation (not necessarily required for all boards)
__attribute__((weak)) void preHalInit() { }