Refactor Trigger System #635

This commit is contained in:
rusefi 2019-02-03 01:11:50 -05:00
parent d247c13283
commit f7c8fafdd7
3 changed files with 3 additions and 3 deletions

View File

@ -30,7 +30,7 @@ static void configureShaftPositionEmulatorShapeWhat(PwmConfig *state) {
/** /**
* One signal per cam shaft revolution * One signal per cam shaft revolution
*/ */
int pinStates0[] = { 1, 0 }; const int pinStates0[] = { 1, 0 };
float switchTimes[] = { 0.8, 1 }; float switchTimes[] = { 0.8, 1 };
int *pinStates[2] = { pinStates0 }; int *pinStates[2] = { pinStates0 };

View File

@ -268,7 +268,7 @@ void copyPwmParameters(PwmConfig *state, int phaseCount, float *switchTimes, int
* See also startSimplePwm * See also startSimplePwm
*/ */
void PwmConfig::weComplexInit(const char *msg, ExecutorInterface *executor, int phaseCount, float *switchTimes, int waveCount, void PwmConfig::weComplexInit(const char *msg, ExecutorInterface *executor, int phaseCount, float *switchTimes, int waveCount,
pin_state_t **pinStates, pwm_cycle_callback *pwmCycleCallback, pwm_gen_callback *stateChangeCallback) { pin_state_t *const*pinStates, pwm_cycle_callback *pwmCycleCallback, pwm_gen_callback *stateChangeCallback) {
this->executor = executor; this->executor = executor;
efiAssertVoid(CUSTOM_ERR_6582, periodNt != 0, "period is not initialized"); efiAssertVoid(CUSTOM_ERR_6582, periodNt != 0, "period is not initialized");

View File

@ -55,7 +55,7 @@ public:
void weComplexInit(const char *msg, void weComplexInit(const char *msg,
ExecutorInterface *executor, ExecutorInterface *executor,
int phaseCount, float *swithcTimes, int waveCount, pin_state_t **pinStates, int phaseCount, float *swithcTimes, int waveCount, pin_state_t *const*pinStates,
pwm_cycle_callback *pwmCycleCallback, pwm_cycle_callback *pwmCycleCallback,
pwm_gen_callback *callback); pwm_gen_callback *callback);