diff --git a/firmware/config/boards/subaru_eg33/rusefi_hw_enums.h b/firmware/config/boards/subaru_eg33/rusefi_hw_enums.h index ef3ef3a7d6..f29e96ff98 100644 --- a/firmware/config/boards/subaru_eg33/rusefi_hw_enums.h +++ b/firmware/config/boards/subaru_eg33/rusefi_hw_enums.h @@ -243,20 +243,6 @@ typedef enum __attribute__ ((__packed__)) { #define BRAIN_PIN_TOTAL_PINS (BRAIN_PIN_LAST - GPIOA_0 + 1) /* Plase keep updating these defines */ -/* diagnostic for brain pins - * can be combination of few bits - * defined as bit mask */ -typedef enum __attribute__ ((__packed__)) -{ - PIN_OK = 0, - PIN_OPEN = 0x01, - PIN_SHORT_TO_GND = 0x02, - PIN_SHORT_TO_BAT = 0x04, - PIN_OVERLOAD = 0x08, - PIN_DRIVER_OVERTEMP = 0x10, - PIN_INVALID = 0x80 -} brain_pin_diag_e; - typedef enum __attribute__ ((__packed__)) { EFI_ADC_NONE = 0, diff --git a/firmware/controllers/algo/rusefi_enums.h b/firmware/controllers/algo/rusefi_enums.h index 4a39bf11f6..0964cc86da 100644 --- a/firmware/controllers/algo/rusefi_enums.h +++ b/firmware/controllers/algo/rusefi_enums.h @@ -21,6 +21,21 @@ #define PERCENT_MULT 100.0f #define PERCENT_DIV 0.01f +/* diagnostic for brain pins + * can be combination of few bits + * defined as bit mask */ +typedef enum __attribute__ ((__packed__)) +{ + PIN_OK = 0, + PIN_OPEN = 0x01, + PIN_SHORT_TO_GND = 0x02, + PIN_SHORT_TO_BAT = 0x04, + PIN_OVERLOAD = 0x08, + PIN_DRIVER_OVERTEMP = 0x10, + PIN_DRIVER_OFF = 0x20, + PIN_INVALID = 0x80 +} brain_pin_diag_e; + typedef enum { ADC_OFF = 0, ADC_SLOW = 1, diff --git a/firmware/controllers/algo/rusefi_hw_enums.h b/firmware/controllers/algo/rusefi_hw_enums.h index bd4978a57e..90e958c02d 100644 --- a/firmware/controllers/algo/rusefi_hw_enums.h +++ b/firmware/controllers/algo/rusefi_hw_enums.h @@ -241,21 +241,6 @@ typedef enum __attribute__ ((__packed__)) { #define BRAIN_PIN_LAST TLE8888_PIN_WAKE #define BRAIN_PIN_TOTAL_PINS (BRAIN_PIN_LAST - GPIOA_0 + 1) -/* diagnostic for brain pins - * can be combination of few bits - * defined as bit mask */ -typedef enum __attribute__ ((__packed__)) -{ - PIN_OK = 0, - PIN_OPEN = 0x01, - PIN_SHORT_TO_GND = 0x02, - PIN_SHORT_TO_BAT = 0x04, - PIN_OVERLOAD = 0x08, - PIN_DRIVER_OVERTEMP = 0x10, - PIN_DRIVER_OFF = 0x20, - PIN_INVALID = 0x80 -} brain_pin_diag_e; - /** * Frankenso analog #1 PC2 ADC12 * Frankenso analog #2 PC1 ADC11