basic hw in the loop - pwm self validation #2028

This commit is contained in:
rusefillc 2020-12-08 04:52:49 -05:00
parent 1c6b53658e
commit 824f87c2d0
3 changed files with 18 additions and 0 deletions

View File

@ -216,4 +216,12 @@ void initTriggerEmulator(Logging *sharedLogger DECLARE_ENGINE_PARAMETER_SUFFIX)
initTriggerEmulatorLogic(sharedLogger);
}
void startTriggerEmulatorPins() {
}
void stopTriggerEmulatorPins() {
}
#endif /* EFI_EMULATE_POSITION_SENSORS */

View File

@ -14,6 +14,8 @@ class PwmConfig;
class MultiChannelStateSequence;
void initTriggerEmulator(Logging *sharedLogger DECLARE_ENGINE_PARAMETER_SUFFIX);
void startTriggerEmulatorPins();
void stopTriggerEmulatorPins();
void setTriggerEmulatorRPM(int value DECLARE_ENGINE_PARAMETER_SUFFIX);
void onConfigurationChangeRpmEmulatorCallback(engine_configuration_s *previousConfiguration);

View File

@ -50,6 +50,7 @@
#include "engine_configuration.h"
#include "aux_pid.h"
#include "perf_trace.h"
#include "trigger_emulator_algo.h"
#include "boost_control.h"
#include "software_knock.h"
#if EFI_MC33816
@ -354,6 +355,10 @@ void applyNewHardwareSettings(void) {
stopLogicAnalyzerPins();
#endif /* EFI_LOGIC_ANALYZER */
#if EFI_EMULATE_POSITION_SENSORS
stopTriggerEmulatorPins();
#endif /* EFI_EMULATE_POSITION_SENSORS */
#if EFI_AUX_PID
stopAuxPins();
#endif /* EFI_AUX_PID */
@ -431,6 +436,9 @@ void applyNewHardwareSettings(void) {
#if EFI_BOOST_CONTROL
startBoostPin();
#endif
#if EFI_EMULATE_POSITION_SENSORS
startTriggerEmulatorPins();
#endif /* EFI_EMULATE_POSITION_SENSORS */
#if EFI_LOGIC_ANALYZER
startLogicAnalyzerPins();
#endif /* EFI_LOGIC_ANALYZER */