diff options
Diffstat (limited to 'testhal/STM32/PWM/main.c')
-rw-r--r-- | testhal/STM32/PWM/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testhal/STM32/PWM/main.c b/testhal/STM32/PWM/main.c index 7f66a114e..bda66573d 100644 --- a/testhal/STM32/PWM/main.c +++ b/testhal/STM32/PWM/main.c @@ -54,8 +54,8 @@ static PWMConfig pwmcfg = { {PWM_OUTPUT_DISABLED, NULL},
{PWM_OUTPUT_DISABLED, NULL}
},
- PWM_COMPUTE_PSC(STM32_TIMCLK2, 100000), /* 100000 nS clock cycle. */
- PWM_COMPUTE_ARR(100000, 1000000000), /* PWM period 1S. */
+ PWM_COMPUTE_PSC(STM32_TIMCLK1, 10000), /* 10KHz PWM clock frequency. */
+ PWM_COMPUTE_ARR(10000, 1000000), /* PWM period 1S. */
0
};
|