mirror of https://github.com/rusefi/wideband.git
explicit struct fields (#272)
Co-authored-by: rusefillc <sdfsdfqsf2334234234>
This commit is contained in:
parent
b80b49753f
commit
14f3a341f9
|
@ -46,20 +46,20 @@ using namespace wbo;
|
||||||
// 400khz / 1024 = 390hz PWM
|
// 400khz / 1024 = 390hz PWM
|
||||||
static Pwm heaterPwm(HEATER_PWM_DEVICE);
|
static Pwm heaterPwm(HEATER_PWM_DEVICE);
|
||||||
static const PWMConfig heaterPwmConfig = {
|
static const PWMConfig heaterPwmConfig = {
|
||||||
400'000,
|
.frequency = 400'000,
|
||||||
1024,
|
.period = 1024,
|
||||||
nullptr,
|
.callback = nullptr,
|
||||||
{
|
.channels = {
|
||||||
{PWM_OUTPUT_ACTIVE_HIGH, nullptr},
|
{PWM_OUTPUT_ACTIVE_HIGH, nullptr},
|
||||||
{PWM_OUTPUT_ACTIVE_HIGH, nullptr},
|
{PWM_OUTPUT_ACTIVE_HIGH, nullptr},
|
||||||
{PWM_OUTPUT_ACTIVE_HIGH, nullptr},
|
{PWM_OUTPUT_ACTIVE_HIGH, nullptr},
|
||||||
{PWM_OUTPUT_ACTIVE_HIGH, nullptr}
|
{PWM_OUTPUT_ACTIVE_HIGH, nullptr}
|
||||||
},
|
},
|
||||||
0,
|
.cr2 = 0,
|
||||||
0,
|
|
||||||
#if STM32_PWM_USE_ADVANCED
|
#if STM32_PWM_USE_ADVANCED
|
||||||
0
|
.bdtr = 0,
|
||||||
#endif
|
#endif
|
||||||
|
.dier = 0
|
||||||
};
|
};
|
||||||
|
|
||||||
static constexpr int preheatTimeCounter = HEATER_PREHEAT_TIME / HEATER_CONTROL_PERIOD;
|
static constexpr int preheatTimeCounter = HEATER_PREHEAT_TIME / HEATER_CONTROL_PERIOD;
|
||||||
|
|
Loading…
Reference in New Issue