making code testable
This commit is contained in:
parent
f801345ec7
commit
43b08f5bd1
|
@ -84,13 +84,13 @@ extern TunerStudioOutputChannels tsOutputChannels;
|
||||||
//#define RAM_METHOD_PREFIX
|
//#define RAM_METHOD_PREFIX
|
||||||
//#endif
|
//#endif
|
||||||
|
|
||||||
static void startSimultaniousInjection(Engine *engine) {
|
void startSimultaniousInjection(Engine *engine) {
|
||||||
for (int i = 0; i < engine->engineConfiguration->specs.cylindersCount; i++) {
|
for (int i = 0; i < engine->engineConfiguration->specs.cylindersCount; i++) {
|
||||||
enginePins.injectors[i].setHigh();
|
enginePins.injectors[i].setHigh();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void endSimultaniousInjectionOnlyTogglePins(Engine *engine) {
|
void endSimultaniousInjectionOnlyTogglePins(Engine *engine) {
|
||||||
for (int i = 0; i < engine->engineConfiguration->specs.cylindersCount; i++) {
|
for (int i = 0; i < engine->engineConfiguration->specs.cylindersCount; i++) {
|
||||||
enginePins.injectors[i].setLow();
|
enginePins.injectors[i].setLow();
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,6 +22,8 @@ int isIgnitionTimingError(void);
|
||||||
|
|
||||||
void showMainHistogram(void);
|
void showMainHistogram(void);
|
||||||
|
|
||||||
|
void startSimultaniousInjection(Engine *engine);
|
||||||
|
void endSimultaniousInjectionOnlyTogglePins(Engine *engine);
|
||||||
void seTurnPinHigh(InjectionSignalPair *pair);
|
void seTurnPinHigh(InjectionSignalPair *pair);
|
||||||
void seTurnPinLow(InjectionSignalPair *pair);
|
void seTurnPinLow(InjectionSignalPair *pair);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue