From a2af34d0e111c715b69e406c2663a22ac7927f5b Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Fri, 31 Jul 2015 05:16:45 +0000 Subject: [PATCH] stm32f1:rtc: whitespace/style cleanup. Improperly checked pulls before commiting. Trivial whitespace only change. --- include/libopencm3/stm32/f1/rtc.h | 10 +++++----- lib/stm32/f1/rtc.c | 12 ++++++------ 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/include/libopencm3/stm32/f1/rtc.h b/include/libopencm3/stm32/f1/rtc.h index 60d60cc2..242efef1 100644 --- a/include/libopencm3/stm32/f1/rtc.h +++ b/include/libopencm3/stm32/f1/rtc.h @@ -140,12 +140,12 @@ /** RTC Interrupt Flags */ typedef enum { -/** Counter Second Flag */ + /** Counter Second Flag */ RTC_SEC, -/** Alarm Event Flag */ - RTC_ALR, -/** Counter Overflow Flag */ - RTC_OW, + /** Alarm Event Flag */ + RTC_ALR, + /** Counter Overflow Flag */ + RTC_OW, } rtcflag_t; /* --- Function prototypes --------------------------------------------------*/ diff --git a/lib/stm32/f1/rtc.c b/lib/stm32/f1/rtc.c index 15d7361b..471d66a0 100644 --- a/lib/stm32/f1/rtc.c +++ b/lib/stm32/f1/rtc.c @@ -93,7 +93,7 @@ void rtc_awake_from_off(enum rcc_osc clock_source) /* Enable access to the backup registers and the RTC. */ pwr_disable_backup_domain_write_protect(); - /* Set the clock source */ + /* Set the clock source */ rcc_set_rtc_clock_source(clock_source); /* Clear the RTC Registers */ @@ -372,11 +372,11 @@ void rtc_awake_from_standby(void) uint32_t reg32; /* Enable power and backup interface clocks. */ - rcc_periph_clock_enable(RCC_PWR); - rcc_periph_clock_enable(RCC_BKP); + rcc_periph_clock_enable(RCC_PWR); + rcc_periph_clock_enable(RCC_BKP); /* Enable access to the backup registers and the RTC. */ - pwr_disable_backup_domain_write_protect(); + pwr_disable_backup_domain_write_protect(); /* Wait for the RSF bit in RTC_CRL to be set by hardware. */ RTC_CRL &= ~RTC_CRL_RSF; @@ -404,8 +404,8 @@ void rtc_auto_awake(enum rcc_osc clock_source, uint32_t prescale_val) uint32_t reg32; /* Enable power and backup interface clocks. */ - rcc_periph_clock_enable(RCC_PWR); - rcc_periph_clock_enable(RCC_BKP); + rcc_periph_clock_enable(RCC_PWR); + rcc_periph_clock_enable(RCC_BKP); reg32 = rcc_rtc_clock_enabled_flag();