From ff7a6fbfd6c49a22b517607b7b1615c71abcdaf3 Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Mon, 15 Aug 2016 14:38:10 +0000 Subject: [PATCH] stm32l1: rcc: drop deprecated form of clock enables Trivial, but removes more users of the old style. --- lib/stm32/l1/rcc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/stm32/l1/rcc.c b/lib/stm32/l1/rcc.c index 7e6f9493..67a3d416 100644 --- a/lib/stm32/l1/rcc.c +++ b/lib/stm32/l1/rcc.c @@ -475,7 +475,7 @@ void rcc_clock_setup_msi(const struct rcc_clock_scale *clock) rcc_set_ppre1(clock->ppre1); rcc_set_ppre2(clock->ppre2); - rcc_peripheral_enable_clock(&RCC_APB1ENR, RCC_APB1ENR_PWREN); + rcc_periph_clock_enable(RCC_PWR); pwr_set_vos_scale(clock->voltage_scale); /* I guess this should be in the settings? */ @@ -507,7 +507,7 @@ void rcc_clock_setup_hsi(const struct rcc_clock_scale *clock) rcc_set_ppre1(clock->ppre1); rcc_set_ppre2(clock->ppre2); - rcc_peripheral_enable_clock(&RCC_APB1ENR, RCC_APB1ENR_PWREN); + rcc_periph_clock_enable(RCC_PWR); pwr_set_vos_scale(clock->voltage_scale); /* I guess this should be in the settings? */ @@ -541,7 +541,7 @@ void rcc_clock_setup_pll(const struct rcc_clock_scale *clock) rcc_set_ppre1(clock->ppre1); rcc_set_ppre2(clock->ppre2); - rcc_peripheral_enable_clock(&RCC_APB1ENR, RCC_APB1ENR_PWREN); + rcc_periph_clock_enable(RCC_PWR); pwr_set_vos_scale(clock->voltage_scale); /* I guess this should be in the settings? */