stm32f3: rcc: consistent masks for pll multiplier

All other masks consistently used a separate mask/shift define, bring the pll
multiplier function in line, and use the same form as other functions.
This commit is contained in:
Karl Palsson
2015-10-22 22:35:48 +00:00
parent 129a874cf8
commit 4d7694b454
2 changed files with 6 additions and 3 deletions

View File

@@ -105,6 +105,7 @@
/* PLLMUL: PLL multiplication factor */
#define RCC_CFGR_PLLMUL_SHIFT 18
#define RCC_CFGR_PLLMUL_MASK 0xF
#define RCC_CFGR_PLLMUL_PLL_IN_CLK_X2 0x0
#define RCC_CFGR_PLLMUL_PLL_IN_CLK_X3 0x1
#define RCC_CFGR_PLLMUL_PLL_IN_CLK_X4 0x2
@@ -120,7 +121,6 @@
#define RCC_CFGR_PLLMUL_PLL_IN_CLK_X14 0xC
#define RCC_CFGR_PLLMUL_PLL_IN_CLK_X15 0xD
#define RCC_CFGR_PLLMUL_PLL_IN_CLK_X16 0xE
#define RCC_CFGR_PLLMUL_MASK (0xF << RCC_CFGR_PLLMUL_SHIFT)
/* PPRE2: APB high-speed prescaler (APB2) */
#define RCC_CFGR_PPRE2_SHIFT 11