diff options
author | Keith Packard <keithp@keithp.com> | 2019-07-16 11:02:56 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2019-07-16 11:02:56 -0700 |
commit | 009d56b4f03c1ba3c9a36bdb54c772ad21844057 (patch) | |
tree | 67091b67b767e9d565ebca7212e493aa92499633 /src/stmf0/ao_timer.c | |
parent | e879d739c394602043e8ed512ad1a433fbf96c1c (diff) |
altos/stmf0: Leave power interface disabled until needed
We only need the power interface when placing the chip in the lowest
power state, so don't power up the power interface clock at startup,
instead wait until later.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/stmf0/ao_timer.c')
-rw-r--r-- | src/stmf0/ao_timer.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/stmf0/ao_timer.c b/src/stmf0/ao_timer.c index 58e52995..be333754 100644 --- a/src/stmf0/ao_timer.c +++ b/src/stmf0/ao_timer.c @@ -294,9 +294,6 @@ ao_clock_init(void) /* Enable 1 wait state so the CPU can run at 48MHz */ stm_flash.acr |= (STM_FLASH_ACR_LATENCY_1 << STM_FLASH_ACR_LATENCY); - /* Enable power interface clock */ - stm_rcc.apb1enr |= (1 << STM_RCC_APB1ENR_PWREN); - /* HCLK to 48MHz -> AHB prescaler = /1 */ cfgr = stm_rcc.cfgr; cfgr &= ~(STM_RCC_CFGR_HPRE_MASK << STM_RCC_CFGR_HPRE); |