gpio example for the Freescale freedom platform

Dependencies:   mbed

Fork of frdm_gpio by Freescale

Files at this revision

API Documentation at this revision

Comitter:
chris
Date:
Fri Oct 12 12:41:36 2012 +0000
Child:
1:4f62fc36c30d
Commit message:
First revision

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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Oct 12 12:41:36 2012 +0000
@@ -0,0 +1,16 @@
+#include "mbed.h"
+
+int main()
+{
+    DigitalOut gpo(PTB8);
+    DigitalOut led(LED_RED);
+
+    while(1) {
+        gpo = 1;
+        led=1; // Off
+        wait(2);
+        gpo = 0;
+        led=0; // on
+        wait(2);
+    }
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed-KL25Z.lib	Fri Oct 12 12:41:36 2012 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/emilmont/code/mbed-KL25Z/#0d4e7384bff6