Frequency counter library only for NucleoF411RE

Dependents:   Frequency_Counter_w_GPS_1PPS

Revision:
3:339307e1dc0d
Parent:
2:194f82ad3041
Child:
4:9d3b3f0a3882
diff -r 194f82ad3041 -r 339307e1dc0d frq_cuntr_full.h
--- a/frq_cuntr_full.h	Sun Dec 21 12:14:46 2014 +0000
+++ b/frq_cuntr_full.h	Tue Dec 23 23:26:49 2014 +0000
@@ -8,7 +8,7 @@
  *  http://mbed.org/users/kenjiArai/
  *      Additional functions and modification
  *      started: October   18th, 2014
- *      Revised: December  21st, 2014
+ *      Revised: December  24th, 2014
  *
  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
  * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
@@ -22,6 +22,7 @@
 
 #include "mbed.h"
 
+// please comment out when normal run mode
 //#define DEBUG           // use Communication with PC(UART)
 
 /*
@@ -34,6 +35,12 @@
  */
 #define BASE_EXTERNAL_CLOCK
 
+//  use avaraged 1pps data
+#define ONEPPS_AVE
+
+// External clock divided by 2
+#define CLOCK_DIVIDED_BY_2
+
 namespace Frequency_counter
 {
 
@@ -119,7 +126,7 @@
       * @param none
       * @return 1: GPS is ready
       */
-    uint8_t gps_status(void);
+    uint8_t status_gps(void);
 
     /** This is a "TEST PURPOSE" function
       * Check PA0 pin input or internal clock frequency
@@ -173,7 +180,7 @@
     uint32_t clk_hi_const;
     uint32_t clk_upper_limit;
     uint32_t clk_lower_limit;
-    uint8_t  gps_ready;     
+    uint8_t  gps_ready;
     // TIM2
     uint32_t counter_tim2;
     uint32_t old_cntr_tim2;