From d32ff5b89d987a0a512e5b8663f306a7b4ee3ec5 Mon Sep 17 00:00:00 2001 From: rusefi Date: Tue, 18 Apr 2023 16:57:43 -0400 Subject: [PATCH] PPS1 is not compatible only:alphax-4chan --- firmware/config/boards/hellen/alphax-4chan/board.mk | 2 ++ .../boards/hellen/alphax-4chan/connectors/main.yaml | 8 ++++++++ firmware/config/boards/hellen_meta.h | 3 +++ 3 files changed, 13 insertions(+) diff --git a/firmware/config/boards/hellen/alphax-4chan/board.mk b/firmware/config/boards/hellen/alphax-4chan/board.mk index 9b50ff8b8c..f54ab8d8bc 100644 --- a/firmware/config/boards/hellen/alphax-4chan/board.mk +++ b/firmware/config/boards/hellen/alphax-4chan/board.mk @@ -11,6 +11,8 @@ DDEFS += -DTRIGGER_SCOPE DDEFS += -DFIRMWARE_ID=\"AlphaX-4chan\" DDEFS += -DEFI_SOFTWARE_KNOCK=TRUE -DSTM32_ADC_USE_ADC3=TRUE +DDEFS += -DADC_MUX_PIN=Gpio::F2 + # pretty temporary DDEFS += -DDISABLE_PIN_STATE_VALIDATION=TRUE diff --git a/firmware/config/boards/hellen/alphax-4chan/connectors/main.yaml b/firmware/config/boards/hellen/alphax-4chan/connectors/main.yaml index 0b5b54839f..891a06cc02 100644 --- a/firmware/config/boards/hellen/alphax-4chan/connectors/main.yaml +++ b/firmware/config/boards/hellen/alphax-4chan/connectors/main.yaml @@ -242,6 +242,14 @@ pins: ts_name: D5 - PPS color: orange + - pin: D5g + # IN_TPS2 + id: EFI_ADC_20 + class: analog_inputs + function: PPS Sensor Input rev G + ts_name: D5 - PPS rev G + color: orange + - pin: D6 # H144_IGN_3 id: E4 diff --git a/firmware/config/boards/hellen_meta.h b/firmware/config/boards/hellen_meta.h index 98da04421d..3d65adf4fc 100644 --- a/firmware/config/boards/hellen_meta.h +++ b/firmware/config/boards/hellen_meta.h @@ -123,6 +123,9 @@ void detectHellenBoardType(); // VIGN PA5 #define H144_IN_VBATT EFI_ADC_5 +// muxed +#define H144_IN_TPS2 EFI_ADC_20 + // IN_MAP1 AIN9 PC0 #define H144_IN_MAP1 EFI_ADC_10 // AIN10 PC1