From 3ddec83f77a09cc42f4b6fc992fbcb142b195d17 Mon Sep 17 00:00:00 2001 From: Oskar Weigl Date: Wed, 1 Mar 2017 01:27:29 +0100 Subject: [PATCH] give USB some clocks --- Inc/main.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Inc/main.h b/Inc/main.h index 10a33f36..0f7643a1 100644 --- a/Inc/main.h +++ b/Inc/main.h @@ -52,7 +52,8 @@ /* Private define ------------------------------------------------------------*/ #define TIM_1_8_CLOCK_HZ 168000000 // #define TIM_1_8_PERIOD_CLOCKS 4096 -#define TIM_1_8_PERIOD_CLOCKS 8192 +// #define TIM_1_8_PERIOD_CLOCKS 8192 +#define TIM_1_8_PERIOD_CLOCKS 10192 #define TIM_1_8_DEADTIME_CLOCKS 20 #define TIM_APB1_CLOCK_HZ 84000000 // #define TIM_APB1_PERIOD_CLOCKS 2048