From 2a61740a904dfb00b853453bd35cbc6d708245ca Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Sat, 17 Jun 2017 21:54:07 +0000 Subject: [PATCH] stm32f1: rcc: Fix TIM17/TIM18 enable bits the RCC_TIM17 and RCC_TIM18 macros used in the "new" style were ok, just the old style raw bit definitions. Reported-by: Karl Hammar --- include/libopencm3/stm32/f1/rcc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/libopencm3/stm32/f1/rcc.h b/include/libopencm3/stm32/f1/rcc.h index 115c8f5b..bbb23fcf 100644 --- a/include/libopencm3/stm32/f1/rcc.h +++ b/include/libopencm3/stm32/f1/rcc.h @@ -364,8 +364,8 @@ @ingroup STM32F1xx_rcc_defines @{*/ -#define RCC_APB2ENR_TIM17EN (1 << 17) -#define RCC_APB2ENR_TIM16EN (1 << 16) +#define RCC_APB2ENR_TIM17EN (1 << 18) +#define RCC_APB2ENR_TIM16EN (1 << 17) #define RCC_APB2ENR_TIM15EN (1 << 16) #define RCC_APB2ENR_ADC3EN (1 << 15) /* (XX) */ #define RCC_APB2ENR_USART1EN (1 << 14)