aboutsummaryrefslogtreecommitdiff
path: root/include/libopencm3/stm32/l1/rcc.h
diff options
context:
space:
mode:
authorKarl Palsson2013-01-23 00:01:46 +0000
committerKarl Palsson2013-01-23 00:01:46 +0000
commitd9fb4f7401b8bf546cc7e6ddeb9f22d343f0622d (patch)
treeb0932bb63bbfcc74e95e48c1ecf228eaddc0039e /include/libopencm3/stm32/l1/rcc.h
parente5b32503825c53d278d09a34d7165020e1b5cad4 (diff)
Add examples making use of the RTC
Add an example using the RTC to help with a lower power design. This is a sister example to the existing "button-irq-printf", which is functionally identical, but uses far less power. There's more tricks that can be done to lower the power even further, but this shows a few of the early steps that can be done, using the RTC wakeup instead of a timer.
Diffstat (limited to 'include/libopencm3/stm32/l1/rcc.h')
-rw-r--r--include/libopencm3/stm32/l1/rcc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/libopencm3/stm32/l1/rcc.h b/include/libopencm3/stm32/l1/rcc.h
index a751def..4dc5102 100644
--- a/include/libopencm3/stm32/l1/rcc.h
+++ b/include/libopencm3/stm32/l1/rcc.h
@@ -444,6 +444,7 @@ void rcc_set_ppre1(u32 ppre1);
void rcc_set_hpre(u32 hpre);
void rcc_set_usbpre(u32 usbpre);
u32 rcc_get_system_clock_source(int i);
+void rcc_rtc_select_clock(u32 clock);
void rcc_clock_setup_msi(const clock_scale_t *clock);
void rcc_clock_setup_hsi(const clock_scale_t *clock);
void rcc_clock_setup_pll(const clock_scale_t *clock);