From 63eb179ddf4498afca1666c8fe9c9f62aac38018 Mon Sep 17 00:00:00 2001 From: rusefi Date: Mon, 7 Sep 2020 12:08:36 -0400 Subject: [PATCH] Hellen says efifeatures --- firmware/config/stm32f4ems/efifeatures.h | 15 ++++++++++++++- firmware/config/stm32f7ems/efifeatures.h | 6 +++++- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/firmware/config/stm32f4ems/efifeatures.h b/firmware/config/stm32f4ems/efifeatures.h index 88c18d35c9..32713327c5 100644 --- a/firmware/config/stm32f4ems/efifeatures.h +++ b/firmware/config/stm32f4ems/efifeatures.h @@ -69,6 +69,10 @@ #define HAL_TRIGGER_USE_PAL FALSE #endif /* HAL_TRIGGER_USE_PAL */ +#ifndef HAL_TRIGGER_USE_ADC +#define HAL_TRIGGER_USE_ADC FALSE +#endif /* HAL_TRIGGER_USE_ADC */ + /** * TunerStudio support. */ @@ -144,8 +148,12 @@ #define BOARD_TLE8888_COUNT 1 #endif +#ifndef BOARD_DRV8860_COUNT +#define BOARD_DRV8860_COUNT 0 +#endif + // todo: move this outside of efifeatures.h -#define BOARD_EXT_GPIOCHIPS (BOARD_TLE6240_COUNT + BOARD_MC33972_COUNT + BOARD_TLE8888_COUNT) +#define BOARD_EXT_GPIOCHIPS (BOARD_TLE6240_COUNT + BOARD_MC33972_COUNT + BOARD_TLE8888_COUNT + BOARD_DRV8860_COUNT) // todo: move this outside of efifeatures.h #define BOARD_EXT_PINREPOPINS 24 @@ -242,6 +250,8 @@ #define EFI_USB_SERIAL TRUE #endif +#define EFI_CONSOLE_USB_DEVICE (&SDU1) + /** * While we embed multiple PnP configurations into the same firmware binary, these marcoses give us control * over which configurations go into the binary @@ -381,6 +391,9 @@ #ifndef LED_ERROR_BRAIN_PIN #define LED_ERROR_BRAIN_PIN GPIOD_14 #endif +#ifndef LED_ERROR_BRAIN_PIN_MODE +#define LED_ERROR_BRAIN_PIN_MODE DEFAULT_OUTPUT +#endif // USART1 -> check defined STM32_SERIAL_USE_USART1 // For GPS we have USART1. We can start with PB7 USART1_RX and PB6 USART1_TX diff --git a/firmware/config/stm32f7ems/efifeatures.h b/firmware/config/stm32f7ems/efifeatures.h index dcfeacf284..a66f52edee 100644 --- a/firmware/config/stm32f7ems/efifeatures.h +++ b/firmware/config/stm32f7ems/efifeatures.h @@ -49,8 +49,12 @@ #define BOARD_TLE8888_COUNT 1 #endif +#ifndef BOARD_DRV8860_COUNT +#define BOARD_DRV8860_COUNT 0 +#endif + // todo: move this outside of efifeatures.h -#define BOARD_EXT_GPIOCHIPS (BOARD_TLE6240_COUNT + BOARD_MC33972_COUNT + BOARD_TLE8888_COUNT) +#define BOARD_EXT_GPIOCHIPS (BOARD_TLE6240_COUNT + BOARD_MC33972_COUNT + BOARD_TLE8888_COUNT + BOARD_DRV8860_COUNT) #undef EFI_CAN_SUPPORT