rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
Functions | Variables
board_configuration.cpp File Reference

Functions

Gpio getWarningLedPin ()
 
Gpio getRunningLedPin ()
 
Gpio getCommsLedPin ()
 
static void setSerialConfigurationOverrides ()
 
static void kinetis_boardConfigOverrides ()
 
void setAdcChannelOverrides ()
 
void longjmp (jmp_buf, int)
 
int setjmp (jmp_buf)
 
void setup_custom_board_overrides ()
 

Variables

char __debugBuffer [80]
 
int __debugEnabled = 0
 

Function Documentation

◆ getCommsLedPin()

Gpio getCommsLedPin ( )

Definition at line 27 of file board_configuration.cpp.

27 {
28 // this board has no comms led
29 return Gpio::Unassigned;
30}
@ Unassigned

◆ getRunningLedPin()

Gpio getRunningLedPin ( )

Definition at line 23 of file board_configuration.cpp.

23 {
24 return Gpio::Unassigned;
25}

◆ getWarningLedPin()

Gpio getWarningLedPin ( )

Definition at line 18 of file board_configuration.cpp.

18 {
19 // this board has no warning led
20 return Gpio::Unassigned;
21}

◆ kinetis_boardConfigOverrides()

static void kinetis_boardConfigOverrides ( )
static

Definition at line 41 of file board_configuration.cpp.

41 {
43
44 setAlgorithm(engine_load_mode_e::LM_SPEED_DENSITY);
45
47 engineConfiguration->firingOrder = FO_1_3_4_2;
48
49 engineConfiguration->ignitionMode = IM_WASTED_SPARK;
51 engineConfiguration->injectionMode = IM_SIMULTANEOUS;
52
53 engineConfiguration->globalTriggerAngleOffset = 114; // the end of 19th tooth?
54
57
60
61 engineConfiguration->map.sensor.type = MT_MPX4250A;
62
65
67 // todo:
73
78
80
82
85
88
89 // todo:
90 int i;
91 for (i = 0; i < MAX_CYLINDER_COUNT; i++)
93 for (i = 0; i < MAX_CYLINDER_COUNT; i++)
95
98
99 //engineConfiguration->isFastAdcEnabled = false;
100
101 // we call it here because setDefaultBoardConfiguration() is not called for DEFAULT_ENGINE_TYPE=MINIMAL_PINS
103}
static constexpr persistent_config_s * config
static constexpr engine_configuration_s * engineConfiguration
void setAlgorithm(engine_load_mode_e algo)
static void setSerialConfigurationOverrides()
brain_input_pin_e triggerInputPins[TRIGGER_INPUT_PIN_COUNT]
float crankingCycleBaseFuel[CRANKING_CYCLE_CLT_SIZE][CRANKING_CURVE_SIZE]
constexpr void setTable(TElement(&dest)[N][M], const VElement value)
constexpr int convertVoltageTo10bitADC(float voltage)
Definition tps.h:21

Referenced by setup_custom_board_overrides().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ longjmp()

void longjmp ( jmp_buf  ,
int   
)

Definition at line 117 of file board_configuration.cpp.

117 {
118 // noop, but noreturn
119 while (1) { }
120}

Referenced by onAssertionFailure().

Here is the caller graph for this function:

◆ setAdcChannelOverrides()

void setAdcChannelOverrides ( void  )

Definition at line 105 of file board_configuration.cpp.

105 {
106 // on Kinetis, ADC_FAST & SLOW are not really "fast" or "slow",
107 // they are just different ADC numbers with different sets of channels
110
113}
void removeChannel(const char *, adc_channel_e hwChannel)
void addFastAdcChannel(const char *, adc_channel_e hwChannel)
Here is the call graph for this function:

◆ setjmp()

int setjmp ( jmp_buf  )

Definition at line 122 of file board_configuration.cpp.

122 {
123 // Fake return 0, not implemented
124 return 0;
125}

Referenced by initEfiWithConfig().

Here is the caller graph for this function:

◆ setSerialConfigurationOverrides()

static void setSerialConfigurationOverrides ( )
static

◆ setup_custom_board_overrides()

void setup_custom_board_overrides ( )

Definition at line 127 of file board_configuration.cpp.

127 {
129}
std::optional< setup_custom_board_overrides_type > custom_board_ConfigOverrides
static void kinetis_boardConfigOverrides()
Here is the call graph for this function:

Variable Documentation

◆ __debugBuffer

char __debugBuffer[80]

Definition at line 14 of file board_configuration.cpp.

◆ __debugEnabled

int __debugEnabled = 0

Definition at line 15 of file board_configuration.cpp.

Go to the source code of this file.