mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 23:40:19 +08:00
arch/arm/src/stm32: Back out a small part of the previous commit ... my fault.
This commit is contained in:
@@ -7365,7 +7365,6 @@ choice
|
|||||||
|
|
||||||
config RTC_LSECLOCK
|
config RTC_LSECLOCK
|
||||||
bool "LSE clock"
|
bool "LSE clock"
|
||||||
select STM32_PWR
|
|
||||||
---help---
|
---help---
|
||||||
Drive the RTC with the LSE clock
|
Drive the RTC with the LSE clock
|
||||||
|
|
||||||
|
|||||||
@@ -662,7 +662,10 @@ static void stm32_stdclockconfig(void)
|
|||||||
#if defined(CONFIG_RTC_LSECLOCK)
|
#if defined(CONFIG_RTC_LSECLOCK)
|
||||||
/* Normally peripheral clocks are enabled later in bootup, but we need
|
/* Normally peripheral clocks are enabled later in bootup, but we need
|
||||||
* clock on PWR *now* as without this setting registers that enable LSE
|
* clock on PWR *now* as without this setting registers that enable LSE
|
||||||
* won't work
|
* won't work.
|
||||||
|
*
|
||||||
|
* NOTE: In this configuration, we can assume the CONFIG_STM32_PWR has
|
||||||
|
* been selected.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
regval = getreg32(STM32_RCC_APB1ENR);
|
regval = getreg32(STM32_RCC_APB1ENR);
|
||||||
|
|||||||
Reference in New Issue
Block a user