summaryrefslogtreecommitdiffstats
path: root/project.h
diff options
context:
space:
mode:
Diffstat (limited to 'project.h')
-rw-r--r--project.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/project.h b/project.h
index 6f7d64b..3d27931 100644
--- a/project.h
+++ b/project.h
@@ -17,7 +17,24 @@
#include <avr/interrupt.h>
#include <avr/pgmspace.h>
-#include "delay.h"
+#ifdef PROTOTYPING
+#define _delay_ms void _delay_ms
+#define _delay_us void _delay_us
+#define _delay_loop_1 void _delay_loop_1
+#define _delay_loop_2 void _delay_loop_2
+#define __DELAY_BACKWARD_COMPATIBLE__
+#endif
+
+#include <delay.h>
+
+
+#ifdef PROTOTYPING
+#undef _delay_loop_2
+#undef _delay_loop_1
+#undef _delay_us
+#undef _delay_ms
+#endif
+
#include "uart.h"