rusEFI
The most advanced open source ECU
Functions
main.cpp File Reference

Detailed Description

C++ main entry point.

See rusefi.cpp for implementation details notes.

Date
Nov 29, 2012
Author
Andrey Belomutskiy, (c) 2012-2023 http://rusefi.com/

Definition in file main.cpp.

Functions

int main (void)
 
 __attribute__ ((weak)) void preHalInit()
 

Function Documentation

◆ __attribute__()

__attribute__ ( (weak)  )

Definition at line 37 of file main.cpp.

37 { }

◆ main()

int main ( void  )

most basic MCU initialization - no configuration access, no external hardware access

Definition at line 17 of file main.cpp.

17  {
18  // Maybe your board needs to do something special before HAL init
19  preHalInit();
20 
21  /*
22  * ChibiOS/RT initialization
23  */
24  halInit();
25  chSysInit();
26 
27  /**
28  * most basic MCU initialization - no configuration access, no external hardware access
29  */
30  baseMCUInit();
31 
32  runRusEfi();
33  return 0;
34 }
void baseMCUInit(void)
void preHalInit()
void runRusEfi()
Definition: rusefi.cpp:174
Here is the call graph for this function:

Go to the source code of this file.