diff options
author | RossTheRoss <msattr@gmail.com> | 2020-04-24 14:38:07 -0500 |
---|---|---|
committer | RossTheRoss <msattr@gmail.com> | 2020-04-24 14:38:07 -0500 |
commit | 9b2514481dbe12675f945c9570c76e3920a38f63 (patch) | |
tree | 8124938c56009a56520b9f3bdf5c297e9fe38253 /Lab6.X/circBuffer.h | |
parent | Add MORE stuff I forget to commit (diff) | |
download | ee2361-9b2514481dbe12675f945c9570c76e3920a38f63.tar ee2361-9b2514481dbe12675f945c9570c76e3920a38f63.tar.gz ee2361-9b2514481dbe12675f945c9570c76e3920a38f63.tar.bz2 ee2361-9b2514481dbe12675f945c9570c76e3920a38f63.tar.lz ee2361-9b2514481dbe12675f945c9570c76e3920a38f63.tar.xz ee2361-9b2514481dbe12675f945c9570c76e3920a38f63.tar.zst ee2361-9b2514481dbe12675f945c9570c76e3920a38f63.zip |
Finish EE2361
Diffstat (limited to 'Lab6.X/circBuffer.h')
-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
+
|