summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2024-06-01 12:07:24 +0200
committerxengineering <me@xengineering.eu>2024-06-01 12:07:24 +0200
commit71f05dc68f31e01b01bbd47d1d7454719b19cce4 (patch)
tree7f227d6c260277c49c9e7d3aa75ed8461498d589
parentdf38994a4a784cc7b794c3f2a3c7f08172ef51ad (diff)
downloadiot-core-71f05dc68f31e01b01bbd47d1d7454719b19cce4.tar
iot-core-71f05dc68f31e01b01bbd47d1d7454719b19cce4.tar.zst
iot-core-71f05dc68f31e01b01bbd47d1d7454719b19cce4.zip
firmware: Fix missing include guards
-rw-r--r--firmware/src/data_link.h5
-rw-r--r--firmware/src/eui64.h5
2 files changed, 10 insertions, 0 deletions
diff --git a/firmware/src/data_link.h b/firmware/src/data_link.h
index 359cb2b..d2a25a1 100644
--- a/firmware/src/data_link.h
+++ b/firmware/src/data_link.h
@@ -1,3 +1,6 @@
+#ifndef DATA_LINK_H
+#define DATA_LINK_H
+
#include <sys/types.h>
#include <zephyr/device.h>
@@ -8,3 +11,5 @@
void dl_send_frame(const struct device *const uart_dev, uint8_t *buffer,
size_t len);
+
+#endif // DATA_LINK_H
diff --git a/firmware/src/eui64.h b/firmware/src/eui64.h
index b7a8a6f..9b11c33 100644
--- a/firmware/src/eui64.h
+++ b/firmware/src/eui64.h
@@ -1,3 +1,6 @@
+#ifndef EUI64_H
+#define EUI64_H
+
#include <zephyr/devicetree.h>
/* 2 chars per byte (hex), 1 char per ':' delimiter and one char for \0 */
@@ -6,3 +9,5 @@
uint64_t eui64_get(void);
void eui64_to_string(uint64_t, char *str);
bool eui64_available(void);
+
+#endif // EUI64_H