summaryrefslogtreecommitdiff
path: root/board/spring
diff options
context:
space:
mode:
Diffstat (limited to 'board/spring')
-rw-r--r--board/spring/board.c5
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);