summaryrefslogtreecommitdiffstats
path: root/project.h
diff options
context:
space:
mode:
authorroot <root@no.no.james.local>2014-12-08 18:39:07 +0000
committerroot <root@no.no.james.local>2014-12-08 18:39:07 +0000
commit804820fe687affa38a52e302179e4a2293cb1ffb (patch)
treeacb784fd60af24d8c389e366d74409c75802dfa0 /project.h
downloadrgb_ring-804820fe687affa38a52e302179e4a2293cb1ffb.tar.gz
rgb_ring-804820fe687affa38a52e302179e4a2293cb1ffb.tar.bz2
rgb_ring-804820fe687affa38a52e302179e4a2293cb1ffb.zip
fish
Diffstat (limited to 'project.h')
-rw-r--r--project.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/project.h b/project.h
new file mode 100644
index 0000000..d75338b
--- /dev/null
+++ b/project.h
@@ -0,0 +1,28 @@
+#define F_CPU 16000000
+
+#include <stdio.h>
+#include <stdint.h>
+#include <avr/io.h>
+#include <avr/interrupt.h>
+#include <avr/pgmspace.h>
+#include <util/delay.h>
+
+#include "uart.h"
+
+#define UART_BAUD_RATE 115200
+
+#define WS2812_PORTREG PORTB
+#define WS2812_DDRREG DDRB
+#define WS2812_PIN 1
+
+#include "lib_ws2812.h"
+
+#ifdef PROTOTYPING
+#define NOPROTO static
+#else
+#define NOPROTO
+#endif
+
+#define NOUNUSED __attribute__((unused))
+
+#include "prototypes.h"