From 413006431840f902ae526af45cffec7eecc2d49c Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Tue, 29 Nov 2016 14:25:12 +0000 Subject: [PATCH] stm32l1: rcc: use mask/shift consistently for MCO MCOPRE prescaler definitions used a _SHIFT and a preshiftd definition. The rest of the file uses separate _MASK and _SHIFT definitions. Fix whitespace on the definitions while we're here. --- include/libopencm3/stm32/l1/rcc.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/include/libopencm3/stm32/l1/rcc.h b/include/libopencm3/stm32/l1/rcc.h index 30c68c73..05af3ae8 100644 --- a/include/libopencm3/stm32/l1/rcc.h +++ b/include/libopencm3/stm32/l1/rcc.h @@ -120,13 +120,13 @@ /* --- RCC_CFGR values ----------------------------------------------------- */ /* MCOPRE */ -#define RCC_CFGR_MCOPRE_DIV1 0 -#define RCC_CFGR_MCOPRE_DIV2 1 -#define RCC_CFGR_MCOPRE_DIV4 2 -#define RCC_CFGR_MCOPRE_DIV8 3 -#define RCC_CFGR_MCOPRE_DIV16 4 -#define RCC_CFGR_MCOPRE_SHIFT 28 -#define RCC_CFGR_MCOPRE (0x7 << RCC_CFGR_MCOPRE_SHIFT) +#define RCC_CFGR_MCOPRE_DIV1 0 +#define RCC_CFGR_MCOPRE_DIV2 1 +#define RCC_CFGR_MCOPRE_DIV4 2 +#define RCC_CFGR_MCOPRE_DIV8 3 +#define RCC_CFGR_MCOPRE_DIV16 4 +#define RCC_CFGR_MCOPRE_SHIFT 28 +#define RCC_CFGR_MCOPRE_MASK 0x7 /* MCO: Microcontroller clock output */ #define RCC_CFGR_MCO_NOCLK 0x0