forked from rusefi/rusefi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
35 lines (28 loc) · 650 Bytes
/
main.cpp
File metadata and controls
35 lines (28 loc) · 650 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/**
* @file main.cpp
* @brief C++ main entry point
*
* @date Nov 29, 2012
* @author Andrey Belomutskiy, (c) 2012-2023
* http://rusefi.com/
*/
#include "pch.h"
#include "rusefi.h"
#include "mpu_util.h"
int main(void) {
// Maybe your board needs to do something special before HAL init
preHalInit();
/*
* ChibiOS/RT initialization
*/
halInit();
chSysInit();
/**
* most basic MCU initialization - no configuration access, no external hardware access
*/
baseMCUInit();
runRusEfi();
return 0;
}
// Weak linked default implementation (not necessarily required for all boards)
__attribute__((weak)) void preHalInit() { }