frdm ticker example for the Freescale freedom platform

Dependencies:   mbed

Fork of frdm_ticker by Freescale

Files at this revision

API Documentation at this revision

Comitter:
emilmont
Date:
Tue Oct 23 09:37:07 2012 +0000
Parent:
2:b085bc47e75b
Child:
4:8ed03bd39b32
Commit message:
Update mbed library

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed-KL25Z.lib Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Fri Oct 12 14:57:51 2012 +0000
+++ b/main.cpp	Tue Oct 23 09:37:07 2012 +0000
@@ -4,17 +4,15 @@
 DigitalOut led1(LED_RED);
 DigitalOut led2(LED_GREEN);
 
-void flip()
-{
+void flip() {
     led2 = !led2;
 }
 
-int main()
-{
+int main() {
     tick.attach(&flip, 0.7); // setup ticker to call flip led2 after 0.7 seconds
 
     // spin in a main loop.
-    while(1) {
+    while (true) {
         led1 = !led1;
         wait (0.3); // flip led1 every 0.3 seconds
     }
--- a/mbed-KL25Z.lib	Fri Oct 12 14:57:51 2012 +0000
+++ b/mbed-KL25Z.lib	Tue Oct 23 09:37:07 2012 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/emilmont/code/mbed-KL25Z/#0d4e7384bff6
+http://mbed.org/users/emilmont/code/mbed-KL25Z/#73c5efe92a6c