From 297a1cefa8e045e68c6b12d1cb31525a086ae4ec Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sun, 21 Nov 2010 10:21:12 +0000 Subject: [PATCH] git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2405 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- testhal/STM32/PWM/main.c | 4 ++-- 1 file 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 };