diff --git a/firmware/controllers/algo/engine_configuration.h b/firmware/controllers/algo/engine_configuration.h index 0106a81b9f..e33a3e3342 100644 --- a/firmware/controllers/algo/engine_configuration.h +++ b/firmware/controllers/algo/engine_configuration.h @@ -177,7 +177,9 @@ typedef struct { adc_channel_mode_e adcHwChannelEnabled[HW_MAX_ADC_INDEX]; + // offset 5760 brain_pin_e triggerInputPins[3]; + // offset 5772 brain_pin_e mainRelayPin; int idleThreadPeriod; diff --git a/firmware/hw_layer/hw_layer.mk b/firmware/hw_layer/hw_layer.mk index c9dfed56f8..71ad313da3 100644 --- a/firmware/hw_layer/hw_layer.mk +++ b/firmware/hw_layer/hw_layer.mk @@ -24,6 +24,7 @@ HW_LAYER_EMS_CPP = $(PROJECT_DIR)/hw_layer/hardware.cpp \ $(PROJECT_DIR)/hw_layer/max31855.cpp \ $(PROJECT_DIR)/hw_layer/joystick.cpp \ $(PROJECT_DIR)/hw_layer/stepper.cpp \ + $(PROJECT_DIR)/hw_layer/servo.cpp \ $(PROJECT_DIR)/hw_layer/stm32f4/mpu_util.cpp HW_LAYER_EGT_CPP = $(PROJECT_DIR)/hw_layer/can_hw.cpp \ diff --git a/firmware/hw_layer/servo.cpp b/firmware/hw_layer/servo.cpp new file mode 100644 index 0000000000..2b9541f61c --- /dev/null +++ b/firmware/hw_layer/servo.cpp @@ -0,0 +1,12 @@ +/** + * @file servo.cpp + * + * http://rusefi.com/wiki/index.php?title=Hardware:Servo_motor + * + * @date Jan 3, 2015 + * @author Andrey Belomutskiy, (c) 2012-2014 + */ + +#include "servo.h" +#include "pin_repository.h" + diff --git a/firmware/hw_layer/servo.h b/firmware/hw_layer/servo.h new file mode 100644 index 0000000000..b06f254210 --- /dev/null +++ b/firmware/hw_layer/servo.h @@ -0,0 +1,13 @@ +/** + * @file servo.h + * + * @date Jan 3, 2015 + * @author Andrey Belomutskiy, (c) 2012-2014 + */ +#ifndef HW_LAYER_SERVO_H_ +#define HW_LAYER_SERVO_H_ + +#include "main.h" + + +#endif /* HW_LAYER_SERVO_H_ */