refactoring
This commit is contained in:
parent
eb4c5684d6
commit
957178cde5
|
@ -36,12 +36,12 @@ static void setInjectorPins() {
|
|||
}
|
||||
|
||||
static void setIgnitionPins() {
|
||||
engineConfiguration->ignitionPins[0] = GPIOC_13;
|
||||
engineConfiguration->ignitionPins[1] = GPIOE_5;
|
||||
engineConfiguration->ignitionPins[2] = GPIOE_4;
|
||||
engineConfiguration->ignitionPins[3] = GPIOE_3;
|
||||
engineConfiguration->ignitionPins[4] = GPIOE_2;
|
||||
engineConfiguration->ignitionPins[5] = GPIOB_8;
|
||||
engineConfiguration->ignitionPins[0] = H144_IGN_1;
|
||||
engineConfiguration->ignitionPins[1] = H144_IGN_2;
|
||||
engineConfiguration->ignitionPins[2] = H144_IGN_3;
|
||||
engineConfiguration->ignitionPins[3] = H144_IGN_4;
|
||||
engineConfiguration->ignitionPins[4] = H144_IGN_5;
|
||||
engineConfiguration->ignitionPins[5] = H144_IGN_6;
|
||||
|
||||
// disable remainder
|
||||
for (int i = 6; i < MAX_CYLINDER_COUNT; i++) {
|
||||
|
|
|
@ -14,6 +14,13 @@
|
|||
#define H144_LS_5 GPIOD_9
|
||||
#define H144_LS_6 GPIOF_12
|
||||
|
||||
#define H144_IGN_1 GPIOC_13
|
||||
#define H144_IGN_2 GPIOE_5
|
||||
#define H144_IGN_3 GPIOE_4
|
||||
#define H144_IGN_4 GPIOE_3
|
||||
#define H144_IGN_5 GPIOE_2
|
||||
#define H144_IGN_6 GPIOB_8
|
||||
|
||||
#define H144_OUT_PWM1 GPIOD_13
|
||||
#define H144_OUT_PWM2 GPIOC_6
|
||||
#define H144_OUT_PWM3 GPIOC_7
|
||||
|
@ -56,6 +63,7 @@
|
|||
//
|
||||
#define H144_IN_AUX2 EFI_ADC_14
|
||||
|
||||
#define H144_IN_D_2 GPIOE_13
|
||||
#define H144_IN_D_AUX4 GPIOA_7
|
||||
|
||||
#define H176_LS_1 GPIOG_7
|
||||
|
|
Loading…
Reference in New Issue