borgware-2d/borg_hw/config_pd1165.in

122 lines
1.9 KiB
Plaintext
Raw Normal View History

2009-07-09 13:37:11 +00:00
mainmenu_option next_comment
2009-07-09 14:03:30 +00:00
comment "PD1165 Port Setup"
2009-07-09 13:37:11 +00:00
#define COLPORT1 PORTC
#define COLDDR1 DDRC
#define COLPORT2 PORTA
#define COLDDR2 DDRA
#// Der andere Port übernimmt die Steuerung der Schieberegister
#define ROWPORT PORTD
#define ROWDDR DDRD
#// Clock und reset gehen gemeinsam an beide Schieberegister
#// der reset pin ist negiert
#define PIN_RST PD4
#define PIN_CLK PD6
#//das dier sind die individuellen Dateneingänge für die Schieberegister
#define PIN_SHFT1 PD7
2009-07-09 14:03:30 +00:00
choice 'Data Port' \
2009-07-09 13:37:11 +00:00
"PORTA PORTA \
PORTB PORTB \
PORTC PORTC \
PORTD PORTD" \
2009-07-09 14:03:30 +00:00
'PORTC' DATAPORT
2009-07-09 13:37:11 +00:00
2009-07-09 14:03:30 +00:00
choice 'Address Port (Bits0-3)' \
2009-07-09 13:37:11 +00:00
"PORTA PORTA \
PORTB PORTB \
PORTC PORTC \
PORTD PORTD" \
2009-07-09 14:03:30 +00:00
'PORTA' ADDRPORT
2009-07-09 13:37:11 +00:00
2009-07-09 14:03:30 +00:00
choice 'Control Port' \
2009-07-09 13:37:11 +00:00
"PORTA PORTA \
PORTB PORTB \
PORTC PORTC \
PORTD PORTD" \
2009-07-09 14:03:30 +00:00
'PORTD' CTRLPORT
2009-07-09 13:37:11 +00:00
2009-07-09 14:03:30 +00:00
choice 'Rdim Port' \
"PORTA PORTA \
PORTB PORTB \
PORTC PORTC \
PORTD PORTD" \
'PORTA' RDIMPORT
comment "pin numbers on Control Port"
2009-07-09 13:37:11 +00:00
2009-07-09 14:03:30 +00:00
choice 'CS0 Pin' \
2009-07-09 13:37:11 +00:00
"Pin0 0 \
Pin1 1 \
Pin2 2 \
Pin3 3 \
Pin4 4 \
Pin5 5 \
Pin6 6 \
Pin7 7" \
2009-07-09 14:03:30 +00:00
'Pin2' BIT_CS0
2009-07-09 13:37:11 +00:00
2009-07-09 14:03:30 +00:00
choice 'CS1 Pin' \
2009-07-09 13:37:11 +00:00
"Pin0 0 \
Pin1 1 \
Pin2 2 \
Pin3 3 \
Pin4 4 \
Pin5 5 \
Pin6 6 \
Pin7 7" \
2009-07-09 14:03:30 +00:00
'Pin3' BIT_CS1
2009-07-09 13:37:11 +00:00
2009-07-09 14:03:30 +00:00
choice 'CS2 Pin' \
2009-07-09 13:37:11 +00:00
"Pin0 0 \
Pin1 1 \
Pin2 2 \
Pin3 3 \
Pin4 4 \
Pin5 5 \
Pin6 6 \
Pin7 7" \
2009-07-09 14:03:30 +00:00
'Pin4' BIT_CS2
choice 'CS3 Pin' \
"Pin0 0 \
Pin1 1 \
Pin2 2 \
Pin3 3 \
Pin4 4 \
Pin5 5 \
Pin6 6 \
Pin7 7" \
'Pin5' BIT_CS3
choice 'RW Pin' \
"Pin0 0 \
Pin1 1 \
Pin2 2 \
Pin3 3 \
Pin4 4 \
Pin5 5 \
Pin6 6 \
Pin7 7" \
'Pin6' BIT_RW
2009-07-09 13:37:11 +00:00
2009-07-09 14:03:30 +00:00
comment "pin number on Rdim Port"
2009-07-09 13:37:11 +00:00
2009-07-09 14:03:30 +00:00
choice 'RDim Pin' \
"Pin0 0 \
Pin1 1 \
Pin2 2 \
Pin3 3 \
Pin4 4 \
Pin5 5 \
Pin6 6 \
Pin7 7" \
'Pin4' BIT_RDIM
2009-07-09 13:37:11 +00:00
endmenu