My attempt at using the mbed without the mbed libraries.

Dependencies:   ARM registers

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

Revision:
4:6ed8900881e8
Parent:
3:88da6c0412b0
Child:
6:d40cd917854d
--- a/main.cpp	Thu Jan 03 02:57:29 2013 +0000
+++ b/main.cpp	Thu Jan 03 03:57:07 2013 +0000
@@ -8,7 +8,7 @@
 Serial pc(115200);
 Timer t(1000); //ms resolution for a serial stopwatch demo
 
-Ticker tock;
+Timeout tock;
 Ticker tock2;
 
 extern "C" void isr(void) {
@@ -23,8 +23,8 @@
     switch1.mode(PULLDOWN);
     t.start();
     
-    tock.attach(&isr, 0.50);
-    tock2.attach(&isr2, 0.25);
+    tock.attach(&isr, 2);
+    tock2.attach(&isr2, 0.5);
     while(1)
     {
         double time = t;