Add include guards
authorNathael Pajani <nathael.pajani@ed3l.fr>
Fri, 12 Jun 2020 14:37:51 +0000 (16:37 +0200)
committerNathael Pajani <nathael.pajani@ed3l.fr>
Tue, 8 Nov 2022 16:03:05 +0000 (17:03 +0100)
include/extdrv/ws2812.h

index f855751..acf86f2 100644 (file)
@@ -57,6 +57,9 @@
  *   
  */
 
+#ifndef WS2812_H
+#define WS2812_H
+
 #include "lib/stdint.h"
 #include "core/pio.h"
 
@@ -108,3 +111,5 @@ void ws2812_clear(struct ws2812_conf* ws2812);
 /*     Alias for ws2812_clear */
 void ws2812_stop(struct ws2812_conf* ws2812);
 
+#endif /* WS2812_H */
+