From d9fb4f7401b8bf546cc7e6ddeb9f22d343f0622d Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Wed, 23 Jan 2013 00:01:46 +0000 Subject: 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. --- include/libopencm3/stm32/l1/rcc.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/libopencm3/stm32/l1/rcc.h') 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); -- cgit v1.2.3