mirror of
https://github.com/google/pebble
synced 2026-10-15 08:04:10 +02:00
@@ -46,7 +46,7 @@ void rtc_init(void) {
|
|||||||
|
|
||||||
clocksource_lse_configure();
|
clocksource_lse_configure();
|
||||||
|
|
||||||
// Only initialize the RTC periphieral if it's not already enabled.
|
// Only initialize the RTC peripheral if it's not already enabled.
|
||||||
if (!(RCC->BDCR & RCC_BDCR_RTCEN)) {
|
if (!(RCC->BDCR & RCC_BDCR_RTCEN)) {
|
||||||
RCC_RTCCLKConfig(RCC_RTCCLKSource_LSE);
|
RCC_RTCCLKConfig(RCC_RTCCLKSource_LSE);
|
||||||
RCC_RTCCLKCmd(ENABLE);
|
RCC_RTCCLKCmd(ENABLE);
|
||||||
|
|||||||
Reference in New Issue
Block a user