summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/arch/arduino-nano/driver/counter.h5
-rw-r--r--include/arch/msp430fr5994lp/driver/counter.h5
-rw-r--r--include/arch/posix/driver/counter.h5
3 files changed, 15 insertions, 0 deletions
diff --git a/include/arch/arduino-nano/driver/counter.h b/include/arch/arduino-nano/driver/counter.h
index c4fc447..c89fb44 100644
--- a/include/arch/arduino-nano/driver/counter.h
+++ b/include/arch/arduino-nano/driver/counter.h
@@ -1,3 +1,6 @@
+#ifndef COUNTER_H
+#define COUNTER_H
+
#include <avr/io.h>
#include <avr/interrupt.h>
@@ -29,3 +32,5 @@ class Counter {
};
extern Counter counter;
+
+#endif
diff --git a/include/arch/msp430fr5994lp/driver/counter.h b/include/arch/msp430fr5994lp/driver/counter.h
index 61f0ec1..b95aba1 100644
--- a/include/arch/msp430fr5994lp/driver/counter.h
+++ b/include/arch/msp430fr5994lp/driver/counter.h
@@ -1,3 +1,6 @@
+#ifndef COUNTER_H
+#define COUNTER_H
+
#include <msp430.h>
#include <stdint.h>
@@ -28,3 +31,5 @@ class Counter {
};
extern Counter counter;
+
+#endif
diff --git a/include/arch/posix/driver/counter.h b/include/arch/posix/driver/counter.h
index 88cb0cc..eeb6da4 100644
--- a/include/arch/posix/driver/counter.h
+++ b/include/arch/posix/driver/counter.h
@@ -1,3 +1,6 @@
+#ifndef COUNTER_H
+#define COUNTER_H
+
#include <stdint.h>
#include <time.h>
@@ -32,3 +35,5 @@ class Counter {
};
extern Counter counter;
+
+#endif