Zimin Wang / Mbed 2 deprecated DDRO_Farrari

Dependencies:   mbed-rtos mbed

Fork of DDRO_Farrari by Liangzhen Lai

Revision:
10:95e9932f7990
Parent:
9:cbb692f51e0f
diff -r cbb692f51e0f -r 95e9932f7990 clock.cpp
--- a/clock.cpp	Tue Feb 11 21:36:52 2014 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,26 +0,0 @@
-#include "clock.h"
-
-float ext_freq(DigitalIn* clk_pin)
-{
-    bool last = false;
-    unsigned int count = 0;
-    
-    Timer t;
-    t.start();
-    for(int i=0; i<100000; i++){
-        bool clkval = *clk_pin;
-        if(clkval && !last){
-            count++;
-        }
-        last = clkval;
-    }
-    float time = t.read();
-    t.stop();
-    if(count < 1000){
-        dual_printf("Clk read inaccurate");
-        pc.printf("Clk count %d\r\n", count);
-    }
-    //pc.printf("T: %f\r\nC: %i\r\n", time, count);
-    
-    return count / time;
-}
\ No newline at end of file