aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32/l1/stm32l-discovery/button-irq-printf/README
diff options
context:
space:
mode:
authorPiotr Esden-Tempski2013-02-18 14:06:02 -0800
committerPiotr Esden-Tempski2013-02-18 14:06:02 -0800
commit9095f58fa3c167a8646a0f9abd5461115e53e2de (patch)
tree9019211307e8c3fde340c9465d9e9b623cd7440d /examples/stm32/l1/stm32l-discovery/button-irq-printf/README
parentb903ae75d847f0764a30744f26d68d9599c7df72 (diff)
parentd9fb4f7401b8bf546cc7e6ddeb9f22d343f0622d (diff)
Merge pull request #79 "More L1 support (and f2/f4 rtc)"
Merge remote-tracking branch 'karlp/pr_more_l1_rtc'
Diffstat (limited to 'examples/stm32/l1/stm32l-discovery/button-irq-printf/README')
-rw-r--r--examples/stm32/l1/stm32l-discovery/button-irq-printf/README32
1 files changed, 32 insertions, 0 deletions
diff --git a/examples/stm32/l1/stm32l-discovery/button-irq-printf/README b/examples/stm32/l1/stm32l-discovery/button-irq-printf/README
index 63232ef..5de96a2 100644
--- a/examples/stm32/l1/stm32l-discovery/button-irq-printf/README
+++ b/examples/stm32/l1/stm32l-discovery/button-irq-printf/README
@@ -1,3 +1,35 @@
* Prints to the screen when the button is pushed/released (irq driven)
115200@8n1 console on PA2 (tx only)
+* uses basic timer 6 with overflows to generate a 1ms counter (not an ideal
+ use, but shows some api methods and can be demoed on the disco board)
+* uses basic timer 7 with the exti interrupts to do ghetto input capture.
+ Not as fast or precise as the real input capture modes, but can be used
+ on any gpio pin.
+
+No effort at saving power is made here. Current consumption on the Disco board
+is ~7.5mA when the green tick led is off, and about 10.5mA when it is on.
+
+example output:
+
+hi guys!
+TICK 0
+TICK 1
+TICK 2
+Pushed down!
+held: 443 ms
+Pushed down!
+TICK 3
+held: 217 ms
+Pushed down!
+held: 99 ms
+Pushed down!
+TICK 4
+held: 73 ms
+Pushed down!
+held: 60 ms
+TICK 5
+Pushed down!
+held: 98 ms
+Pushed down!
+