From a1620f374c1fa4be58f0b625d448fddf68fc7eb7 Mon Sep 17 00:00:00 2001 From: Batlapin Date: Fri, 3 Jul 2020 10:58:15 +0300 Subject: [PATCH] Update boards.cpp Corrected Timer init Half-Duty constant --- STM32F1/variants/generic_stm32f103v/wirish/boards.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/STM32F1/variants/generic_stm32f103v/wirish/boards.cpp b/STM32F1/variants/generic_stm32f103v/wirish/boards.cpp index ddeaa57e8..3844e8ff2 100644 --- a/STM32F1/variants/generic_stm32f103v/wirish/boards.cpp +++ b/STM32F1/variants/generic_stm32f103v/wirish/boards.cpp @@ -192,7 +192,7 @@ static void setup_adcs(void) { static void timer_default_config(timer_dev *dev) { timer_adv_reg_map *regs = (dev->regs).adv; const uint16 full_overflow = 0xFFFF; - const uint16 half_duty = 0x8FFF; + const uint16 half_duty = 0x7FFF; // Half-Duty seems to be 0x7FFF, not 0x8FFF timer_init(dev); timer_pause(dev);