Files
libopencm3-examples/examples/stm32/l1/stm32l-discovery/button-irq-printf-lowpower
Karl Palsson 92624b7d01 [stm32x] Use modern header include paths.
Replace includes of stm32/YY/xxxx.h with stm32/xxxx.h
Replace stm32/YY/nvic.h with cm3/nvic.h.
In some cases, the include list was resorted alphabetically when it was
complicated and I was reviewing them manually, but most of this was
automatically done.
2013-12-13 14:13:47 +00:00
..
2013-04-19 17:19:32 -07:00
2013-04-19 17:19:32 -07:00

This is _functionally_ identical to the "button-irq-printf"
example, but has been modified to use some low power features.

There is a 115200@8n1 console on PA2, which prints a tick count every second,
and when the user push button is pressed, the time it is held down for is
timed (in milliseconds)

Instead of free running timers and busy loops, this version uses the RTC
module and attempts to sleep as much as possible, including while the button
is pressed.

Status
~~~~~~
Only very basic power savings are done!

Current consumption, led off/on, 16Mhz HSI:    2.7mA/5.4mA
Current consumption, led off/on,  4Mhz HSI:    1.4mA/?.?mA
Current consumption, led off/on,  4Mhz MSI:    0.9mA/?.?mA