From dcfe43860be2daf118e81a59029a34f018926ae5 Mon Sep 17 00:00:00 2001 From: James McKenzie Date: Mon, 15 Dec 2014 12:10:09 +0000 Subject: fish --- project.h | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 project.h (limited to 'project.h') diff --git a/project.h b/project.h new file mode 100644 index 0000000..779b00c --- /dev/null +++ b/project.h @@ -0,0 +1,47 @@ +#define F_CPU 8000000 + + +#ifdef PROTOTYPING +#define NOPROTO static +#define inline +//delay.h is broken we need to look after it +#define __OPTIMIZE__ +#else +#define NOPROTO +#endif + + +#include +#include +#include +#include +#include +#include + +#ifdef PROTOTYPING +#define _delay_ms static _delay_ms +#define _delay_us static _delay_us +#define _delay_loop_1 static _delay_loop_1 +#define _delay_loop_2 static _delay_loop_2 +#endif + +#define __DELAY_BACKWARD_COMPATIBLE__ + +#include + +#ifdef PROTOTYPING +#undef _delay_loop_2 +#undef _delay_loop_1 +#undef _delay_us +#undef _delay_ms +#endif + + +#define WS2812_PORTREG PORTC +#define WS2812_DDRREG DDRC +#define WS2812_PIN 6 + +#include "lib_ws2812.h" +#define NOUNUSED __attribute__((unused)) + +#include "prototypes.h" -- cgit v1.2.3