diff --git a/firmware/controllers/trigger/trigger_structure.cpp b/firmware/controllers/trigger/trigger_structure.cpp index 0163cdc76f..fbb9d49455 100644 --- a/firmware/controllers/trigger/trigger_structure.cpp +++ b/firmware/controllers/trigger/trigger_structure.cpp @@ -41,14 +41,6 @@ TriggerShape::TriggerShape() : memset(triggerIndexByAngle, 0, sizeof(triggerIndexByAngle)); } -int TriggerShape::getSize() const { - return size; -} - -int TriggerShape::getTriggerShapeSynchPointIndex() { - return triggerShapeSynchPointIndex; -} - void TriggerShape::calculateTriggerSynchPoint(TriggerState *state DECLARE_ENGINE_PARAMETER_S) { #if EFI_PROD_CODE || defined(__DOXYGEN__) efiAssertVoid(getRemainingStack(chThdSelf()) > 256, "calc s"); @@ -126,6 +118,14 @@ void TriggerShape::initialize(operation_mode_e operationMode, bool needSecondTri #endif } +int TriggerShape::getSize() const { + return size; +} + +int TriggerShape::getTriggerShapeSynchPointIndex() { + return triggerShapeSynchPointIndex; +} + int multi_wave_s::getChannelState(int channelIndex, int phaseIndex) const { return waves[channelIndex].pinStates[phaseIndex]; } diff --git a/firmware/hw_layer/trigger_input.cpp b/firmware/hw_layer/trigger_input.cpp index 65bf5774c1..cbba862606 100644 --- a/firmware/hw_layer/trigger_input.cpp +++ b/firmware/hw_layer/trigger_input.cpp @@ -27,6 +27,13 @@ EXTERN_ENGINE ; static Logging *logger; +static void cam_icu_width_callback(ICUDriver *icup) { +} + +static void cam_icu_period_callback(ICUDriver *icup) { + +} + /** * that's hardware timer input capture IRQ entry point * 'width' events happens before the 'period' event @@ -70,6 +77,13 @@ static void shaft_icu_period_callback(ICUDriver *icup) { static ICUConfig shaft_icucfg = { ICU_INPUT_ACTIVE_LOW, 100000, /* 100kHz ICU clock frequency. */ shaft_icu_width_callback, shaft_icu_period_callback }; +/** + * this is about VTTi and stuff kind of cam sensor + */ +static ICUConfig cam_icucfg = { ICU_INPUT_ACTIVE_LOW, 100000, /* 100kHz ICU clock frequency. */ +cam_icu_width_callback, cam_icu_period_callback }; + + static ICUDriver *turnOnTriggerInputPin(brain_pin_e hwPin) { // configure pin turnOnCapturePin("trigger", hwPin);