diff options
Diffstat (limited to 'board/spring/board.c')
-rw-r--r-- | board/spring/board.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/board/spring/board.c b/board/spring/board.c index fd9acaf6d5..09e943d8f7 100644 --- a/board/spring/board.c +++ b/board/spring/board.c @@ -120,10 +120,9 @@ const struct adc_t adc_channels[] = { }; BUILD_ASSERT(ARRAY_SIZE(adc_channels) == ADC_CH_COUNT); -/* PWM channels */ +/* PWM channels. Must be in the exactly same order as in enum pwm_channel. */ const struct pwm_t pwm_channels[] = { - [PWM_CH_ILIM] = {STM32_TIM(3), STM32_TIM_CH(1), 0, - GPIO_ILIM}, + {STM32_TIM(3), STM32_TIM_CH(1), 0, GPIO_ILIM}, }; BUILD_ASSERT(ARRAY_SIZE(pwm_channels) == PWM_CH_COUNT); |