aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-11-21 10:21:12 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-11-21 10:21:12 +0000
commit297a1cefa8e045e68c6b12d1cb31525a086ae4ec (patch)
tree2f9dc08a7195fd3029ff8b6b2b30fa5f138970fb
parent43902259c696eabe39836ce96c3e00b5bbf0fb82 (diff)
downloadChibiOS-297a1cefa8e045e68c6b12d1cb31525a086ae4ec.tar.gz
ChibiOS-297a1cefa8e045e68c6b12d1cb31525a086ae4ec.tar.bz2
ChibiOS-297a1cefa8e045e68c6b12d1cb31525a086ae4ec.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2405 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r--testhal/STM32/PWM/main.c4
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
};