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

Functions

Gpio getCommsLedPin ()
 
Gpio getWarningLedPin ()
 
Gpio getRunningLedPin ()
 
static void tdg_pdm8_boardConfigOverrides ()
 
static void tdg_pdm8_boardInitHardware ()
 
void setup_custom_board_overrides ()
 

Variables

static constexpr float AmpsPerVolt = 10
 
static constexpr float MaxCurrent = 100
 
static const ProtectedGpioConfig cfgs []
 

Function Documentation

◆ getCommsLedPin()

Gpio getCommsLedPin ( )

Definition at line 6 of file board_configuration.cpp.

6 {
7 // this board has no comms led
8 return Gpio::Unassigned;
9}
@ Unassigned

◆ getRunningLedPin()

Gpio getRunningLedPin ( )

Definition at line 16 of file board_configuration.cpp.

16 {
17 // this board has no running led
18 return Gpio::Unassigned;
19}

◆ getWarningLedPin()

Gpio getWarningLedPin ( )

Definition at line 11 of file board_configuration.cpp.

11 {
12 // this board has no warning led
13 return Gpio::Unassigned;
14}

◆ setup_custom_board_overrides()

void setup_custom_board_overrides ( )

Definition at line 55 of file board_configuration.cpp.

55 {
58}
std::optional< setup_custom_board_overrides_type > custom_board_InitHardware
Definition hardware.cpp:77
std::optional< setup_custom_board_overrides_type > custom_board_ConfigOverrides
static void tdg_pdm8_boardInitHardware()
static void tdg_pdm8_boardConfigOverrides()
Here is the call graph for this function:

◆ tdg_pdm8_boardConfigOverrides()

static void tdg_pdm8_boardConfigOverrides ( )
static

Definition at line 21 of file board_configuration.cpp.

Referenced by setup_custom_board_overrides().

Here is the caller graph for this function:

◆ tdg_pdm8_boardInitHardware()

static void tdg_pdm8_boardInitHardware ( )
static

Definition at line 51 of file board_configuration.cpp.

51 {
53}
@ PROTECTED_PIN_0
int protectedGpio_add(brain_pin_e base, const ProtectedGpioConfig *const configs)
static const ProtectedGpioConfig cfgs[]

Referenced by setup_custom_board_overrides().

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

Variable Documentation

◆ AmpsPerVolt

constexpr float AmpsPerVolt = 10
staticconstexpr

Definition at line 34 of file board_configuration.cpp.

◆ cfgs

const ProtectedGpioConfig cfgs[]
static
Initial value:
= {
{ Gpio::A0, EFI_ADC_10, AmpsPerVolt, MaxCurrent },
{ Gpio::A1, EFI_ADC_11, AmpsPerVolt, MaxCurrent },
{ Gpio::A2, EFI_ADC_12, AmpsPerVolt, MaxCurrent },
{ Gpio::A3, EFI_ADC_13, AmpsPerVolt, MaxCurrent },
{ Gpio::C9, EFI_ADC_14, AmpsPerVolt, MaxCurrent },
{ Gpio::A8, EFI_ADC_15, AmpsPerVolt, MaxCurrent },
{ Gpio::A9, EFI_ADC_8, AmpsPerVolt, MaxCurrent },
{ Gpio::A10, EFI_ADC_9, AmpsPerVolt, MaxCurrent },
}
static constexpr float MaxCurrent
static constexpr float AmpsPerVolt

Definition at line 40 of file board_configuration.cpp.

40 {
41 { Gpio::A0, EFI_ADC_10, AmpsPerVolt, MaxCurrent },
42 { Gpio::A1, EFI_ADC_11, AmpsPerVolt, MaxCurrent },
43 { Gpio::A2, EFI_ADC_12, AmpsPerVolt, MaxCurrent },
44 { Gpio::A3, EFI_ADC_13, AmpsPerVolt, MaxCurrent },
45 { Gpio::C9, EFI_ADC_14, AmpsPerVolt, MaxCurrent },
46 { Gpio::A8, EFI_ADC_15, AmpsPerVolt, MaxCurrent },
47 { Gpio::A9, EFI_ADC_8, AmpsPerVolt, MaxCurrent },
48 { Gpio::A10, EFI_ADC_9, AmpsPerVolt, MaxCurrent },
49};

Referenced by tdg_pdm8_boardInitHardware().

◆ MaxCurrent

constexpr float MaxCurrent = 100
staticconstexpr

Definition at line 38 of file board_configuration.cpp.

Go to the source code of this file.