summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-03-21 08:25:35 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-03-21 08:25:35 +0100
commit9b07d50daa0ce241d2677eebe777bc15b57ec7b0 (patch)
tree4d39cf20ee4bf0cc8d832102b5716433e5e6d1b1 /include
parentc4e9b301ed9d3943a3d4b6ec2fa708528e35c7d3 (diff)
counter: add include guards
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