aboutsummaryrefslogtreecommitdiff
path: root/test/stubbed/avr/io.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/stubbed/avr/io.h')
-rw-r--r--test/stubbed/avr/io.h42
1 files changed, 23 insertions, 19 deletions
diff --git a/test/stubbed/avr/io.h b/test/stubbed/avr/io.h
index cd4a7bc..cfbdef3 100644
--- a/test/stubbed/avr/io.h
+++ b/test/stubbed/avr/io.h
@@ -1,24 +1,28 @@
+#ifndef STUB_AVR_IO
+#define STUB_AVR_IO
#include <stdio.h>
-int DDRA = 0;
-int DDRB = 0;
+static int DDRA = 0;
+static int DDRB = 0;
-int PORTA = 0;
-int PORTB = 0;
+static int PORTA = 0;
+static int PORTB = 0;
+static int PINA = 0;
+static int PINB = 0;
-int PA1 = 1;
-int PA2 = 2;
-int PA3 = 3;
-int PA4 = 4;
-int PA5 = 5;
-int PA6 = 6;
-int PA7 = 7;
-
-int PB1 = 1;
-int PB2 = 2;
-int PB3 = 3;
-int PB4 = 4;
-int PB5 = 5;
-int PB6 = 6;
-int PB7 = 7;
+#define PA1 1
+#define PA2 2
+#define PA3 3
+#define PA4 4
+#define PA5 5
+#define PA6 6
+#define PA7 7
+#define PB1 1
+#define PB2 2
+#define PB3 3
+#define PB4 4
+#define PB5 5
+#define PB6 6
+#define PB7 7
+#endif