diff options
Diffstat (limited to '')
-rw-r--r-- | Lab6.X/circBuffer.h | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/Lab6.X/circBuffer.h b/Lab6.X/circBuffer.h index ad5f1fd..74f8386 100644 --- a/Lab6.X/circBuffer.h +++ b/Lab6.X/circBuffer.h @@ -1,19 +1,19 @@ -#ifndef CIRCBUFF_H -#define CIRCBUFF_H - -#include <xc.h> // include processor files - each processor file is guarded. - - -#ifdef __cplusplus -extern "C" { -#endif /* __cplusplus */ -void putVal(int newValue); // add a new value to the buffer -int getAvg(); // average all buffer vals -void initBuffer(); // set all buffer vals to zero - -#ifdef __cplusplus -} -#endif /* __cplusplus */ - -#endif - +#ifndef CIRCBUFF_H
+#define CIRCBUFF_H
+
+#include <xc.h> // include processor files - each processor file is guarded.
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+void putVal(long newValue); // add a new value to the buffer
+long getAvg(); // average all buffer vals
+void initBuffer(); // set all buffer vals to zero
+
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+#endif
+
|