Refactor Trigger System #635
This commit is contained in:
parent
d247c13283
commit
f7c8fafdd7
|
@ -30,7 +30,7 @@ static void configureShaftPositionEmulatorShapeWhat(PwmConfig *state) {
|
|||
/**
|
||||
* One signal per cam shaft revolution
|
||||
*/
|
||||
int pinStates0[] = { 1, 0 };
|
||||
const int pinStates0[] = { 1, 0 };
|
||||
float switchTimes[] = { 0.8, 1 };
|
||||
|
||||
int *pinStates[2] = { pinStates0 };
|
||||
|
|
|
@ -268,7 +268,7 @@ void copyPwmParameters(PwmConfig *state, int phaseCount, float *switchTimes, int
|
|||
* See also startSimplePwm
|
||||
*/
|
||||
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;
|
||||
|
||||
efiAssertVoid(CUSTOM_ERR_6582, periodNt != 0, "period is not initialized");
|
||||
|
|
|
@ -55,7 +55,7 @@ public:
|
|||
|
||||
void weComplexInit(const char *msg,
|
||||
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_gen_callback *callback);
|
||||
|
||||
|
|
Loading…
Reference in New Issue