stm32g4: rcc: use datasheet naming for CCIPR fields
Follow HACKING specifications, be consistent with all other parts. Yes, the SEL suffix is kinda superfluous, but it's _consistent_ which is why we do it. Signed-off-by: Karl Palsson <karlp@tweak.au>
This commit is contained in:
@@ -759,8 +759,8 @@ void rcc_clock_setup_hse_3v3(const struct rcc_clock_scale *clock)
|
||||
*/
|
||||
void rcc_set_clock48_source(uint32_t clksel)
|
||||
{
|
||||
RCC_CCIPR &= ~(RCC_CCIPR_SEL_MASK << RCC_CCIPR_CLK48_SHIFT);
|
||||
RCC_CCIPR |= (clksel << RCC_CCIPR_CLK48_SHIFT);
|
||||
RCC_CCIPR &= ~(RCC_CCIPR_SEL_MASK << RCC_CCIPR_CLK48SEL_SHIFT);
|
||||
RCC_CCIPR |= (clksel << RCC_CCIPR_CLK48SEL_SHIFT);
|
||||
}
|
||||
|
||||
/**@}*/
|
||||
|
||||
Reference in New Issue
Block a user