Skip to content

Commit 7539f35

Browse files
committed
platform/cplus_hub: fix typo
Fix typo in comments about PWM rates
1 parent 712f839 commit 7539f35

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/pbio/platform/cplus_hub/platform.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ const pbdrv_pwm_stm32_tim_platform_data_t
131131
.platform_init = pwm_dev_0_platform_init,
132132
.TIMx = TIM1,
133133
.prescalar = 8, // results in 10 MHz clock
134-
.period = 10000, // 12MHz divided by 10k makes 1 kHz PWM
134+
.period = 10000, // 10 MHz divided by 10k makes 1 kHz PWM
135135
.id = PWM_DEV_0,
136136
.channels = PBDRV_PWM_STM32_TIM_CHANNEL_1_ENABLE | PBDRV_PWM_STM32_TIM_CHANNEL_2_ENABLE
137137
| PBDRV_PWM_STM32_TIM_CHANNEL_3_ENABLE | PBDRV_PWM_STM32_TIM_CHANNEL_4_ENABLE
@@ -144,7 +144,7 @@ const pbdrv_pwm_stm32_tim_platform_data_t
144144
.platform_init = pwm_dev_1_platform_init,
145145
.TIMx = TIM15,
146146
.prescalar = 8, // results in 10 MHz clock
147-
.period = 10000, // 12MHz divided by 10k makes 1 kHz PWM
147+
.period = 10000, // 10 MHz divided by 10k makes 1 kHz PWM
148148
.id = PWM_DEV_1,
149149
.channels = PBDRV_PWM_STM32_TIM_CHANNEL_1_ENABLE | PBDRV_PWM_STM32_TIM_CHANNEL_2_ENABLE
150150
| PBDRV_PWM_STM32_TIM_CHANNEL_1_INVERT | PBDRV_PWM_STM32_TIM_CHANNEL_1_COMPLEMENT,
@@ -153,7 +153,7 @@ const pbdrv_pwm_stm32_tim_platform_data_t
153153
.platform_init = pwm_dev_2_platform_init,
154154
.TIMx = TIM16,
155155
.prescalar = 8, // results in 10 MHz clock
156-
.period = 10000, // 12MHz divided by 10k makes 1 kHz PWM
156+
.period = 10000, // 10 MHz divided by 10k makes 1 kHz PWM
157157
.id = PWM_DEV_2,
158158
.channels = PBDRV_PWM_STM32_TIM_CHANNEL_1_ENABLE,
159159
},

0 commit comments

Comments
 (0)