summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2019-12-18 00:22:28 -0800
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2019-12-18 00:22:28 -0800
commit335b89cbd79d2623a68984f6d99e7480272a44e9 (patch)
treed05a099e3fe46e91ce17b0fb64a20660753e4b17
parent63966da14ab66bf711547f94e4d185f2027ad253 (diff)
downloadchristmas_lights-335b89cbd79d2623a68984f6d99e7480272a44e9.tar.gz
christmas_lights-335b89cbd79d2623a68984f6d99e7480272a44e9.tar.xz
add mpan guards
-rw-r--r--config.h5
-rw-r--r--eq.h5
-rw-r--r--led.h5
3 files changed, 15 insertions, 0 deletions
diff --git a/config.h b/config.h
index 00816db..72357e3 100644
--- a/config.h
+++ b/config.h
@@ -1,3 +1,6 @@
+#ifndef CONFIG_H
+#define CONFIG_H
+
#define F_CPU 8000000UL
#define LED_COUNT 50
@@ -16,3 +19,5 @@
{26, 37}
#define ISR_PIN PB4
+
+#endif
diff --git a/eq.h b/eq.h
index 2ad7beb..fd28b25 100644
--- a/eq.h
+++ b/eq.h
@@ -1,4 +1,9 @@
+#ifndef EQ_H
+#define EQ_H
+
extern unsigned char eq_levels[];
void eq_decay();
void eq_read();
+
+#endif
diff --git a/led.h b/led.h
index fd11a87..4f5cc09 100644
--- a/led.h
+++ b/led.h
@@ -1,5 +1,10 @@
+#ifndef LED_H
+#define LED_H
+
struct colour {
unsigned char r, g, b;
};
void led_signal_sequence(int, struct colour *, int, int, int);
+
+#endif