aboutsummaryrefslogtreecommitdiff
path: root/uart.h
diff options
context:
space:
mode:
authorWojtek Kosior <kwojtus@protonmail.com>2019-11-19 17:55:43 +0100
committerWojtek Kosior <kwojtus@protonmail.com>2019-11-19 17:55:43 +0100
commitc1f247d0f23173c77a350324ddf0495ffb935860 (patch)
tree4074c12ff53bfe72620b8c5e5288440bf03b1ab5 /uart.h
parent39145f6d1b8c57abe2bc0167b2b413970d0dfdb6 (diff)
downloadrpi-MMU-example-c1f247d0f23173c77a350324ddf0495ffb935860.tar.gz
rpi-MMU-example-c1f247d0f23173c77a350324ddf0495ffb935860.zip
guard against multiple-inclusion of headers
Diffstat (limited to 'uart.h')
-rw-r--r--uart.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/uart.h b/uart.h
index 6430cb1..ec29d47 100644
--- a/uart.h
+++ b/uart.h
@@ -1,3 +1,6 @@
+#ifndef UART_H
+#define UART_H
+
#include <stddef.h>
#include <stdint.h>
#include <global.h>
@@ -39,3 +42,5 @@ void uart_init();
void uart_putc(unsigned char c);
unsigned char uart_getc();
void uart_puts(const char* str);
+
+#endif // UART_H