My attempt at using the mbed without the mbed libraries.

Dependencies:   ARM registers

Here is a main.cpp, that uses the registers library.

Revision:
0:5fa5046f2ff5
Child:
2:e26c096f1946
diff -r 000000000000 -r 5fa5046f2ff5 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Dec 21 01:55:10 2012 +0000
@@ -0,0 +1,12 @@
+#include "registers.h" // oneliner: ain't that sexy!
+DigitalOut led1(LED1);
+DigitalOut led2(LED2);
+DigitalIn switch1(p21);
+
+int main() {  
+    switch1.mode(PULLDOWN);
+    while(1) {
+        led1 = switch1;
+        led2 = !led1;
+    }
+}
\ No newline at end of file