export board-specific macro for stm32 pins based on board yaml #3298
This commit is contained in:
parent
7302eedf7b
commit
58f80b7066
|
@ -13,17 +13,13 @@
|
|||
#include "pch.h"
|
||||
#include "fsio_impl.h"
|
||||
#include "custom_engine.h"
|
||||
#include "../hellen_meta.h"
|
||||
|
||||
static void setInjectorPins() {
|
||||
engineConfiguration->injectionPins[0] = GPIOG_7;
|
||||
engineConfiguration->injectionPins[1] = GPIOG_8;
|
||||
engineConfiguration->injectionPins[2] = GPIOD_11;
|
||||
engineConfiguration->injectionPins[3] = GPIOD_10;
|
||||
|
||||
//engineConfiguration->injectionPins[4] = GPIOD_9;
|
||||
//engineConfiguration->injectionPins[5] = GPIOF_12;
|
||||
//engineConfiguration->injectionPins[6] = GPIOF_13;
|
||||
//engineConfiguration->injectionPins[7] = GPIOF_14;
|
||||
engineConfiguration->injectionPins[0] = H144_LS_1;
|
||||
engineConfiguration->injectionPins[1] = H144_LS_2;
|
||||
engineConfiguration->injectionPins[2] = H144_LS_3;
|
||||
engineConfiguration->injectionPins[3] = H144_LS_4;
|
||||
|
||||
// Disable remainder
|
||||
for (int i = 4; i < MAX_CYLINDER_COUNT;i++) {
|
||||
|
|
|
@ -13,19 +13,19 @@
|
|||
#include "pch.h"
|
||||
#include "fsio_impl.h"
|
||||
#include "custom_engine.h"
|
||||
#include "../hellen_meta.h"
|
||||
|
||||
static void hellenWbo() {
|
||||
engineConfiguration->enableAemXSeries = true;
|
||||
}
|
||||
|
||||
static void setInjectorPins() {
|
||||
engineConfiguration->injectionPins[0] = GPIOG_7;
|
||||
engineConfiguration->injectionPins[1] = GPIOG_8;
|
||||
engineConfiguration->injectionPins[2] = GPIOD_11;
|
||||
engineConfiguration->injectionPins[3] = GPIOD_10;
|
||||
engineConfiguration->injectionPins[4] = GPIOD_9;
|
||||
engineConfiguration->injectionPins[5] = GPIOF_12;
|
||||
|
||||
engineConfiguration->injectionPins[0] = H144_LS_1;
|
||||
engineConfiguration->injectionPins[1] = H144_LS_2;
|
||||
engineConfiguration->injectionPins[2] = H144_LS_3;
|
||||
engineConfiguration->injectionPins[3] = H144_LS_4;
|
||||
engineConfiguration->injectionPins[4] = H144_LS_5;
|
||||
engineConfiguration->injectionPins[5] = H144_LS_6;
|
||||
|
||||
// Disable remainder
|
||||
for (int i = 6; i < MAX_CYLINDER_COUNT;i++) {
|
||||
|
|
|
@ -7,6 +7,13 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#define H144_LS_1 GPIOG_7
|
||||
#define H144_LS_2 GPIOG_8
|
||||
#define H144_LS_3 GPIOD_11
|
||||
#define H144_LS_4 GPIOD_10
|
||||
#define H144_LS_5 GPIOD_9
|
||||
#define H144_LS_6 GPIOF_12
|
||||
|
||||
#define H176_LS_1 GPIOG_7
|
||||
|
||||
#define H176_OUT_PWM1 GPIOD_13
|
||||
|
|
Loading…
Reference in New Issue