mirror of https://github.com/google/pebble
spelling: peripheral
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
parent
dd02b29b2a
commit
7d8b2dc7aa
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue