diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2019-12-18 00:22:28 -0800 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2019-12-18 00:22:28 -0800 |
commit | 335b89cbd79d2623a68984f6d99e7480272a44e9 (patch) | |
tree | d05a099e3fe46e91ce17b0fb64a20660753e4b17 | |
parent | 63966da14ab66bf711547f94e4d185f2027ad253 (diff) | |
download | christmas_lights-335b89cbd79d2623a68984f6d99e7480272a44e9.tar.gz christmas_lights-335b89cbd79d2623a68984f6d99e7480272a44e9.tar.xz |
add mpan guards
-rw-r--r-- | config.h | 5 | ||||
-rw-r--r-- | eq.h | 5 | ||||
-rw-r--r-- | led.h | 5 |
3 files changed, 15 insertions, 0 deletions
@@ -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 @@ -1,4 +1,9 @@ +#ifndef EQ_H +#define EQ_H + extern unsigned char eq_levels[]; void eq_decay(); void eq_read(); + +#endif @@ -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 |