summaryrefslogtreecommitdiffstats
path: root/sw-avr/rom-loader/pinmap.h
diff options
context:
space:
mode:
authorNao Pross <naopross@thearcway.org>2018-10-30 12:07:58 +0100
committerNao Pross <naopross@thearcway.org>2018-10-30 12:34:37 +0100
commitcda16639cbf19d6eb5c11f05f1045e54b3fdaba9 (patch)
tree25227b76ae6dd50d5eddc30e4806af2003e70f54 /sw-avr/rom-loader/pinmap.h
parentUpdate gitignore (diff)
downloadz80uPC-cda16639cbf19d6eb5c11f05f1045e54b3fdaba9.tar.gz
z80uPC-cda16639cbf19d6eb5c11f05f1045e54b3fdaba9.zip
[avr] Add test program for IO and basic usart
Diffstat (limited to '')
-rw-r--r--sw-avr/rom-loader/pinmap.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/sw-avr/rom-loader/pinmap.h b/sw-avr/rom-loader/pinmap.h
new file mode 100644
index 0000000..1149feb
--- /dev/null
+++ b/sw-avr/rom-loader/pinmap.h
@@ -0,0 +1,19 @@
+#ifndef PINMAP_H
+#define PINMAP_H
+
+#define ADDRL_DDR DDRC
+#define ADDRL_PORT PORTC
+#define ADDRL_bitE 3
+#define ADDRL_bitD 4
+#define ADDRL_bitA0 0
+
+#define ADDRH_DDR DDRD
+#define ADDRH_PORT PORTD
+#define ADDRH_bitE 7
+#define ADDRH_bitD 3
+#define ADDRH_bitA0 4
+
+#define DATA_DDR DDRB
+#define DATA_PORT PORTB
+
+#endif