From 7c714e572762d6205283ac63518eb490b7b111d5 Mon Sep 17 00:00:00 2001 From: rusefi Date: Fri, 31 Jan 2020 14:29:52 -0500 Subject: [PATCH] opening the door to boost controller! --- firmware/config/stm32f4ems/efifeatures.h | 1 + .../controllers/actuators/boost_control.h | 27 +++++++++++++++++++ firmware/controllers/system/efi_gpio.h | 2 +- 3 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 firmware/controllers/actuators/boost_control.h diff --git a/firmware/config/stm32f4ems/efifeatures.h b/firmware/config/stm32f4ems/efifeatures.h index 88c18d35c9..dbab14d5cb 100644 --- a/firmware/config/stm32f4ems/efifeatures.h +++ b/firmware/config/stm32f4ems/efifeatures.h @@ -11,6 +11,7 @@ #define EFI_GPIO_HARDWARE TRUE +#define EFI_BOOST_CONTROL TRUE #define EFI_FSIO TRUE #ifndef EFI_CDM_INTEGRATION diff --git a/firmware/controllers/actuators/boost_control.h b/firmware/controllers/actuators/boost_control.h new file mode 100644 index 0000000000..33407167fb --- /dev/null +++ b/firmware/controllers/actuators/boost_control.h @@ -0,0 +1,27 @@ +/* + * boost_control.h + * + * Created on: 18. aug. 2019 + * Author: Ola Ruud + */ +#pragma once + +#include "engine.h" +#include "periodic_task.h" + + + + + +void startBoostPin(void); +void stopBoostPin(void); +void initBoostCtrl(Logging *sharedLogger); +void setBoostPFactor(float p); +void setBoostIFactor(float i); +void setBoostDFactor(float d); +void setDefaultBoostParameters(DECLARE_CONFIG_PARAMETER_SIGNATURE); +void showBoostInfo(void); +void onConfigurationChangeBoostCallback(engine_configuration_s *previousConfiguration); + + + diff --git a/firmware/controllers/system/efi_gpio.h b/firmware/controllers/system/efi_gpio.h index b9defdf43a..7b3187bdcf 100644 --- a/firmware/controllers/system/efi_gpio.h +++ b/firmware/controllers/system/efi_gpio.h @@ -139,7 +139,7 @@ public: OutputPin debugTriggerSync; OutputPin debugTimerCallback; OutputPin debugSetTimer; - + OutputPin boostPin; OutputPin idleSolenoidPin; OutputPin alternatorPin; /**