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.
This commit is contained in:
Karl Palsson
2016-11-29 14:25:12 +00:00
parent 825b51a6a8
commit 4130064318

View File

@@ -126,7 +126,7 @@
#define RCC_CFGR_MCOPRE_DIV8 3 #define RCC_CFGR_MCOPRE_DIV8 3
#define RCC_CFGR_MCOPRE_DIV16 4 #define RCC_CFGR_MCOPRE_DIV16 4
#define RCC_CFGR_MCOPRE_SHIFT 28 #define RCC_CFGR_MCOPRE_SHIFT 28
#define RCC_CFGR_MCOPRE (0x7 << RCC_CFGR_MCOPRE_SHIFT) #define RCC_CFGR_MCOPRE_MASK 0x7
/* MCO: Microcontroller clock output */ /* MCO: Microcontroller clock output */
#define RCC_CFGR_MCO_NOCLK 0x0 #define RCC_CFGR_MCO_NOCLK 0x0