only:uaefi121
This commit is contained in:
parent
104e1c50ef
commit
d9a2a19e12
|
@ -37,7 +37,6 @@ static void setupDefaultSensorInputs() {
|
|||
setPPSInputs(MM100_IN_PPS_ANALOG, MM100_IN_AUX2_ANALOG);
|
||||
|
||||
engineConfiguration->clt.adcChannel = MM100_IN_CLT_ANALOG;
|
||||
|
||||
engineConfiguration->iat.adcChannel = MM100_IN_IAT_ANALOG;
|
||||
|
||||
engineConfiguration->triggerInputPins[0] = Gpio::MM100_UART8_TX; // VR2 max9924 is the safer default
|
||||
|
|
|
@ -9,6 +9,17 @@
|
|||
#include "hellen_meta.h"
|
||||
#include "hellen_leds_100.cpp"
|
||||
|
||||
static void setupDefaultSensorInputs() {
|
||||
engineConfiguration->tps1_1AdcChannel = MM100_IN_TPS_ANALOG;
|
||||
engineConfiguration->tps1_2AdcChannel = MM100_IN_AUX1_ANALOG;
|
||||
engineConfiguration->map.sensor.hwChannel = MM100_IN_MAP1_ANALOG;
|
||||
|
||||
setPPSInputs(MM100_IN_PPS_ANALOG, MM100_IN_AUX2_ANALOG);
|
||||
|
||||
engineConfiguration->clt.adcChannel = MM100_IN_CLT_ANALOG;
|
||||
engineConfiguration->iat.adcChannel = MM100_IN_IAT_ANALOG;
|
||||
}
|
||||
|
||||
void setBoardConfigOverrides() {
|
||||
setHellenMegaEnPin();
|
||||
setHellenVbatt();
|
||||
|
@ -30,9 +41,38 @@ void setBoardConfigOverrides() {
|
|||
}
|
||||
|
||||
void setBoardDefaultConfiguration() {
|
||||
engineConfiguration->injectionPins[0] = Gpio::MM100_INJ1;
|
||||
engineConfiguration->injectionPins[1] = Gpio::MM100_INJ2;
|
||||
engineConfiguration->injectionPins[2] = Gpio::MM100_INJ3;
|
||||
engineConfiguration->injectionPins[3] = Gpio::MM100_INJ4;
|
||||
engineConfiguration->injectionPins[4] = Gpio::MM100_INJ5;
|
||||
engineConfiguration->injectionPins[5] = Gpio::MM100_INJ6;
|
||||
|
||||
engineConfiguration->ignitionPins[0] = Gpio::MM100_IGN1;
|
||||
engineConfiguration->ignitionPins[1] = Gpio::MM100_IGN2;
|
||||
engineConfiguration->ignitionPins[2] = Gpio::MM100_IGN3;
|
||||
engineConfiguration->ignitionPins[3] = Gpio::MM100_IGN4;
|
||||
engineConfiguration->ignitionPins[4] = Gpio::MM100_IGN5;
|
||||
engineConfiguration->ignitionPins[5] = Gpio::MM100_IGN6;
|
||||
|
||||
setupDefaultSensorInputs();
|
||||
}
|
||||
|
||||
int getBoardMetaDcOutputsCount() {
|
||||
return 2;
|
||||
// todo return 2;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static Gpio OUTPUTS[] = {
|
||||
Gpio::MM100_INJ1,
|
||||
Gpio::MM100_INJ2,
|
||||
Gpio::MM100_INJ3,
|
||||
};
|
||||
|
||||
int getBoardMetaOutputsCount() {
|
||||
return efi::size(OUTPUTS);
|
||||
}
|
||||
|
||||
Gpio* getBoardMetaOutputs() {
|
||||
return OUTPUTS;
|
||||
}
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
meta: config/boards/hellen_mm100_meta.h
|
||||
|
||||
pins:
|
||||
- pin: 1a
|
||||
class: outputs
|
||||
|
@ -216,14 +218,19 @@ pins:
|
|||
color: yellow
|
||||
|
||||
- pin: 38a
|
||||
meta: MM100_IN_TPS_ANALOG
|
||||
class: analog_inputs
|
||||
ts_name: TPS 1
|
||||
ts_name: ___ TPS1
|
||||
function: TPS 1 sensor input
|
||||
type: av
|
||||
color: green
|
||||
|
||||
- pin: 39a
|
||||
class: analog_inputs
|
||||
ts_name: TPS 2
|
||||
meta: MM100_IN_AUX1_ANALOG
|
||||
ts_name: ___ TPS2
|
||||
function: TPS 2 sensor input
|
||||
type: av
|
||||
color: blue
|
||||
|
||||
- pin: 40a
|
||||
|
@ -247,56 +254,61 @@ pins:
|
|||
|
||||
- pin: 44a
|
||||
class: outputs
|
||||
ts_name: INJ_1
|
||||
meta: MM100_INJ1
|
||||
ts_name: ___ INJ_1
|
||||
function: Injector 1
|
||||
color: green
|
||||
type: inj
|
||||
|
||||
- pin: 45a
|
||||
class: outputs
|
||||
ts_name: INJ_2
|
||||
meta: MM100_INJ2
|
||||
ts_name: ___ INJ_2
|
||||
function: Injector 2
|
||||
color: white
|
||||
type: inj
|
||||
|
||||
- pin: 46a
|
||||
class: outputs
|
||||
ts_name: INJ_3
|
||||
meta: MM100_INJ3
|
||||
ts_name: ___ INJ_3
|
||||
function: Injector 3
|
||||
color: blue
|
||||
type: inj
|
||||
|
||||
- pin: 47a
|
||||
class: outputs
|
||||
ts_name: INJ_4
|
||||
meta: MM100_INJ4
|
||||
ts_name: ___ INJ_4
|
||||
function: Injector 4
|
||||
color: orange/brown
|
||||
type: inj
|
||||
|
||||
- pin: 48a
|
||||
class: outputs
|
||||
ts_name: INJ_5
|
||||
meta: MM100_INJ5
|
||||
ts_name: ___ INJ_5
|
||||
function: Injector 5
|
||||
color: brown
|
||||
type: inj
|
||||
|
||||
- pin: 49a
|
||||
class: outputs
|
||||
ts_name: INJ_6
|
||||
ts_name: ___ INJ_6
|
||||
function: Injector 6
|
||||
color: yellow
|
||||
type: inj
|
||||
|
||||
- pin: 50a
|
||||
class: outputs
|
||||
ts_name: INJ_7
|
||||
ts_name: ___ INJ_7
|
||||
function: Injector 7
|
||||
color: white
|
||||
type: inj
|
||||
|
||||
- pin: 51a
|
||||
class: outputs
|
||||
ts_name: INJ_8
|
||||
ts_name: ___ INJ_8
|
||||
function: Injector 8
|
||||
color: green
|
||||
type: inj
|
||||
|
@ -357,8 +369,10 @@ pins:
|
|||
|
||||
- pin: 63a
|
||||
class: analog_inputs
|
||||
ts_name: IAT
|
||||
function: IAT sensor
|
||||
meta: MM100_IN_IAT_ANALOG
|
||||
ts_name: ___ IAT
|
||||
function: IAT input
|
||||
type: at
|
||||
color: blue
|
||||
|
||||
- pin: 64a
|
||||
|
@ -368,8 +382,10 @@ pins:
|
|||
|
||||
- pin: 65a
|
||||
class: analog_inputs
|
||||
ts_name: CLT
|
||||
function: CLT sensor
|
||||
meta: MM100_IN_CLT_ANALOG
|
||||
ts_name: ___ CLT Coolant
|
||||
function: CLT input
|
||||
type: at
|
||||
color: grey
|
||||
|
||||
- pin: 66a
|
||||
|
@ -484,15 +500,19 @@ pins:
|
|||
|
||||
- pin: 90a
|
||||
class: analog_inputs
|
||||
ts_name: PPS 1
|
||||
function: PPS 1 sensor input
|
||||
meta: MM100_IN_PPS_ANALOG
|
||||
ts_name: ___ PPS1
|
||||
function: PPS input 1
|
||||
type: av
|
||||
color: white
|
||||
|
||||
- pin: 91a
|
||||
class: analog_inputs
|
||||
ts_name: PPS 2
|
||||
function: PPS 2 sensor input
|
||||
color: orange
|
||||
meta: MM100_IN_AUX2_ANALOG
|
||||
ts_name: ___ PPS2
|
||||
function: PPS input 2
|
||||
type: av
|
||||
color: orange/brown
|
||||
|
||||
- pin: 92a
|
||||
function: WBO2 SWD
|
||||
|
|
Loading…
Reference in New Issue