Dependencies:   mbed

Revision:
2:64a34ae90bb1
Parent:
1:9fa7cc80f1a7
--- a/shared.h	Fri Oct 04 22:03:30 2019 +0000
+++ b/shared.h	Sat Oct 05 21:17:17 2019 +0000
@@ -41,7 +41,6 @@
 
 #define TIMER0 TMR0
 #define SEC 10000           /* 10000 timer0 interrupts per second (100 usec.) */
-#define SAMPLES_SECOND 1/SEC  /* # of seoconds between sample used in frequency detection (100 usec.) */
                    
 #define T100MS 0.1*SEC
 #define T2S    2*SEC
@@ -81,11 +80,13 @@
  extern UCHAR *tx_out_ptr; /*pointer to the transmit out */    
  extern uint16_t ADC_buffer;    // value that ADC will read in, need to be external so that flow function can read in
  extern uint16_t temperature; // value that will be external to all variable. stores the value of temperature
- extern uint16_t Vtemp; // value in mV of the temperature calculated
+ extern int Vtemp; // value in mV of the temperature calculated
  extern uint16_t freq_value; // value that will store the frequency detected. Need it to be availaible to all functions
  extern uint16_t flow; // value that will store the flow that is determine
  extern uint16_t ADC_vortex_frequency_input; // value of the ADC_vortex_frequency_input
  extern uint16_t Vrefl; // value of the ADC_vortex_frequency_input
+ extern double zero_detect_counter;
+ extern UCHAR reset_counter_flag;
 
 #define RX_BUF_SIZE 10            /* size of receive buffer in bytes */
 #define TX_BUF_SIZE 10          /* size of transmit buffer in bytes */