aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32/l1/stm32l-discovery/button-irq-printf/syscfg.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 /examples/stm32/l1/stm32l-discovery/button-irq-printf/syscfg.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 'examples/stm32/l1/stm32l-discovery/button-irq-printf/syscfg.h')
-rw-r--r--examples/stm32/l1/stm32l-discovery/button-irq-printf/syscfg.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/stm32/l1/stm32l-discovery/button-irq-printf/syscfg.h b/examples/stm32/l1/stm32l-discovery/button-irq-printf/syscfg.h
index be54502..d278ac4 100644
--- a/examples/stm32/l1/stm32l-discovery/button-irq-printf/syscfg.h
+++ b/examples/stm32/l1/stm32l-discovery/button-irq-printf/syscfg.h
@@ -24,8 +24,8 @@
extern "C" {
#endif
-#include <libopencm3/stm32/l1/gpio.h>
-#include <libopencm3/stm32/l1/nvic.h>
+#include <libopencm3/cm3/nvic.h>
+#include <libopencm3/stm32/gpio.h>
#include <libopencm3/stm32/exti.h>
#include <libopencm3/stm32/usart.h>
@@ -46,6 +46,7 @@ extern "C" {
struct state_t {
bool falling;
+ int tickcount;
};