mirror of https://github.com/rusefi/wideband.git
support 4 channels
This commit is contained in:
parent
8688ed9e5e
commit
4e08e59c52
|
@ -30,9 +30,18 @@ static const PWMConfig pumpDacConfig = {
|
|||
|
||||
static const uint8_t pumpDacPwmCh[] = {
|
||||
PUMP_DAC_PWM_CHANNEL_0,
|
||||
#if (AFR_CHANNELS > 1)
|
||||
|
||||
#if (AFR_CHANNELS >= 2)
|
||||
PUMP_DAC_PWM_CHANNEL_1,
|
||||
#endif
|
||||
|
||||
#if (AFR_CHANNELS >= 3)
|
||||
PUMP_DAC_PWM_CHANNEL_2,
|
||||
#endif
|
||||
|
||||
#if (AFR_CHANNELS >= 4)
|
||||
PUMP_DAC_PWM_CHANNEL_3,
|
||||
#endif
|
||||
};
|
||||
|
||||
static Pwm pumpDac(PUMP_DAC_PWM_DEVICE);
|
||||
|
|
Loading…
Reference in New Issue