moving IO-only away from scheduling logic
This commit is contained in:
parent
b69d613192
commit
28704a9970
|
@ -20,6 +20,17 @@
|
|||
|
||||
#if EFI_ENGINE_CONTROL
|
||||
|
||||
void turnInjectionPinHigh(InjectionEvent *event) {
|
||||
efitick_t nowNt = getTimeNowNt();
|
||||
for (int i = 0;i < MAX_WIRES_COUNT;i++) {
|
||||
InjectorOutputPin *output = event->outputs[i];
|
||||
|
||||
if (output) {
|
||||
output->open(nowNt);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
FuelSchedule::FuelSchedule() {
|
||||
for (int cylinderIndex = 0; cylinderIndex < MAX_CYLINDER_COUNT; cylinderIndex++) {
|
||||
elements[cylinderIndex].ownIndex = cylinderIndex;
|
||||
|
|
|
@ -59,18 +59,6 @@ void endSimultaneousInjection(InjectionEvent *event) {
|
|||
engine->injectionEvents.addFuelEventsForCylinder(event->ownIndex);
|
||||
}
|
||||
|
||||
void turnInjectionPinHigh(InjectionEvent *event) {
|
||||
efitick_t nowNt = getTimeNowNt();
|
||||
for (int i = 0;i < MAX_WIRES_COUNT;i++) {
|
||||
InjectorOutputPin *output = event->outputs[i];
|
||||
|
||||
if (output) {
|
||||
output->open(nowNt);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void turnInjectionPinLow(InjectionEvent *event) {
|
||||
efitick_t nowNt = getTimeNowNt();
|
||||
|
||||
|
|
Loading…
Reference in New Issue