From cda16639cbf19d6eb5c11f05f1045e54b3fdaba9 Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Tue, 30 Oct 2018 12:07:58 +0100 Subject: [avr] Add test program for IO and basic usart --- sw-avr/rom-loader/pinmap.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 sw-avr/rom-loader/pinmap.h (limited to 'sw-avr/rom-loader/pinmap.h') 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 -- cgit v1.2.1