rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
Functions | Variables
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

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

Variables

std::optional< setup_custom_board_overrides_typecustom_board_preHalInit
 Pre-HAL initialization override point Allows boards to perform custom initialization before HAL is initialized.
 

Function Documentation

◆ __attribute__()

__attribute__ ( (weak)  )

Definition at line 46 of file main.cpp.

46{ }

◆ main()

int main ( void  )

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

Definition at line 24 of file main.cpp.

24 {
26 // Maybe your board needs to do something special before HAL init
27 preHalInit();
29
30 /*
31 * ChibiOS/RT initialization
32 */
33 halInit();
34 chSysInit();
35
36 /**
37 * most basic MCU initialization - no configuration access, no external hardware access
38 */
40
41 runRusEfi();
42 return 0;
43}
void baseMCUInit()
static bool call_board_override(std::optional< setup_custom_board_overrides_type > board_override)
std::optional< setup_custom_board_overrides_type > custom_board_preHalInit
Pre-HAL initialization override point Allows boards to perform custom initialization before HAL is in...
Definition main.cpp:22
void setup_custom_board_overrides()
void runRusEfi()
Definition rusefi.cpp:174
void preHalInit()
Here is the call graph for this function:

◆ setup_custom_board_overrides()

void setup_custom_board_overrides ( )

Definition at line 40 of file board_configuration.cpp.

40 {
42}
static void AtlasBoardConfigOverrides()
std::optional< setup_custom_board_overrides_type > custom_board_ConfigOverrides

Referenced by main().

Here is the caller graph for this function:

Variable Documentation

◆ custom_board_preHalInit

std::optional<setup_custom_board_overrides_type> custom_board_preHalInit

Pre-HAL initialization override point Allows boards to perform custom initialization before HAL is initialized.

Definition at line 22 of file main.cpp.

Referenced by main(), and setup_custom_board_overrides().

Go to the source code of this file.