mirror of https://github.com/rusefi/rusefi-1.git
auto-sync
This commit is contained in:
parent
90b842a29b
commit
04a2fc8d22
|
@ -41,14 +41,6 @@ TriggerShape::TriggerShape() :
|
||||||
memset(triggerIndexByAngle, 0, sizeof(triggerIndexByAngle));
|
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) {
|
void TriggerShape::calculateTriggerSynchPoint(TriggerState *state DECLARE_ENGINE_PARAMETER_S) {
|
||||||
#if EFI_PROD_CODE || defined(__DOXYGEN__)
|
#if EFI_PROD_CODE || defined(__DOXYGEN__)
|
||||||
efiAssertVoid(getRemainingStack(chThdSelf()) > 256, "calc s");
|
efiAssertVoid(getRemainingStack(chThdSelf()) > 256, "calc s");
|
||||||
|
@ -126,6 +118,14 @@ void TriggerShape::initialize(operation_mode_e operationMode, bool needSecondTri
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int TriggerShape::getSize() const {
|
||||||
|
return size;
|
||||||
|
}
|
||||||
|
|
||||||
|
int TriggerShape::getTriggerShapeSynchPointIndex() {
|
||||||
|
return triggerShapeSynchPointIndex;
|
||||||
|
}
|
||||||
|
|
||||||
int multi_wave_s::getChannelState(int channelIndex, int phaseIndex) const {
|
int multi_wave_s::getChannelState(int channelIndex, int phaseIndex) const {
|
||||||
return waves[channelIndex].pinStates[phaseIndex];
|
return waves[channelIndex].pinStates[phaseIndex];
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,6 +27,13 @@ EXTERN_ENGINE
|
||||||
;
|
;
|
||||||
static Logging *logger;
|
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
|
* that's hardware timer input capture IRQ entry point
|
||||||
* 'width' events happens before the 'period' event
|
* '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. */
|
static ICUConfig shaft_icucfg = { ICU_INPUT_ACTIVE_LOW, 100000, /* 100kHz ICU clock frequency. */
|
||||||
shaft_icu_width_callback, shaft_icu_period_callback };
|
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) {
|
static ICUDriver *turnOnTriggerInputPin(brain_pin_e hwPin) {
|
||||||
// configure pin
|
// configure pin
|
||||||
turnOnCapturePin("trigger", hwPin);
|
turnOnCapturePin("trigger", hwPin);
|
||||||
|
|
Loading…
Reference in New Issue