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:
sam_grove
Date:
Wed Jul 16 09:57:13 2014 +0000
Parent:
8:fd3628d7fa26
Commit message:
Update formatting and comments

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r fd3628d7fa26 -r 0be02a534dd0 main.cpp
--- a/main.cpp	Wed Apr 09 04:39:32 2014 +0000
+++ b/main.cpp	Wed Jul 16 09:57:13 2014 +0000
@@ -4,15 +4,17 @@
 DigitalOut led1(LED_RED);
 DigitalOut led2(LED_GREEN);
 
-void flip() {
+void flip()
+{
     led2 = !led2;
 }
 
-int main() {
-    tick.attach(&flip, 0.7); // setup ticker to call flip led2 after 0.7 seconds
+int main()
+{
+    tick.attach(&flip, 0.7); // setup ticker to call flip every 0.7 seconds
 
     while (true) {
         led1 = !led1;
         wait (0.3); // flip led1 every 0.3 seconds
     }
-}
\ No newline at end of file
+}
diff -r fd3628d7fa26 -r 0be02a534dd0 mbed.bld
--- a/mbed.bld	Wed Apr 09 04:39:32 2014 +0000
+++ b/mbed.bld	Wed Jul 16 09:57:13 2014 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/6473597d706e
\ No newline at end of file
+http://mbed.org/users/mbed_official/code/mbed/builds/04dd9b1680ae
\ No newline at end of file