From 335b89cbd79d2623a68984f6d99e7480272a44e9 Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Wed, 18 Dec 2019 00:22:28 -0800 Subject: add mpan guards --- config.h | 5 +++++ eq.h | 5 +++++ led.h | 5 +++++ 3 files changed, 15 insertions(+) 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 -- cgit v1.2.3-70-g09d2