|
|
|
dep_bool_menu "joystick support" JOYSTICK_SUPPORT y
|
|
|
|
|
|
|
|
if [ "$JOYSTICK_SUPPORT" = "y" ]; then
|
|
|
|
###################### Parallel joystick menu #################################
|
|
|
|
dep_bool_menu "parallel joystick support" PARALLEL_JOYSTICK_SUPPORT y
|
|
|
|
|
|
|
|
if [ "$PARALLEL_JOYSTICK_SUPPORT" = "y" ]; then
|
|
|
|
choice 'Pin up' \
|
|
|
|
"PINA PINA \
|
|
|
|
PINB PINB \
|
|
|
|
PINC PINC \
|
|
|
|
PIND PIND" \
|
|
|
|
'PINB' JOYSTICK_PIN_UP
|
|
|
|
|
|
|
|
choice 'Bit up' \
|
|
|
|
"Bit0 0 \
|
|
|
|
Bit1 1 \
|
|
|
|
Bit2 2 \
|
|
|
|
Bit3 3 \
|
|
|
|
Bit4 4 \
|
|
|
|
Bit5 5 \
|
|
|
|
Bit6 6 \
|
|
|
|
Bit7 7" \
|
|
|
|
'Bit0' JOYSTICK_BIT_UP
|
|
|
|
|
|
|
|
choice 'Pin down' \
|
|
|
|
"PINA PINA \
|
|
|
|
PINB PINB \
|
|
|
|
PINC PINC \
|
|
|
|
PIND PIND" \
|
|
|
|
'PINB' JOYSTICK_PIN_DOWN
|
|
|
|
|
|
|
|
choice 'Bit down' \
|
|
|
|
"Bit0 0 \
|
|
|
|
Bit1 1 \
|
|
|
|
Bit2 2 \
|
|
|
|
Bit3 3 \
|
|
|
|
Bit4 4 \
|
|
|
|
Bit5 5 \
|
|
|
|
Bit6 6 \
|
|
|
|
Bit7 7" \
|
|
|
|
'Bit1' JOYSTICK_BIT_DOWN
|
|
|
|
|
|
|
|
choice 'Pin left' \
|
|
|
|
"PINA PINA \
|
|
|
|
PINB PINB \
|
|
|
|
PINC PINC \
|
|
|
|
PIND PIND" \
|
|
|
|
'PINB' JOYSTICK_PIN_LEFT
|
|
|
|
|
|
|
|
choice 'Bit left' \
|
|
|
|
"Bit0 0 \
|
|
|
|
Bit1 1 \
|
|
|
|
Bit2 2 \
|
|
|
|
Bit3 3 \
|
|
|
|
Bit4 4 \
|
|
|
|
Bit5 5 \
|
|
|
|
Bit6 6 \
|
|
|
|
Bit7 7" \
|
|
|
|
'Bit2' JOYSTICK_BIT_LEFT
|
|
|
|
|
|
|
|
choice 'Pin right' \
|
|
|
|
"PINA PINA \
|
|
|
|
PINB PINB \
|
|
|
|
PINC PINC \
|
|
|
|
PIND PIND" \
|
|
|
|
'PINB' JOYSTICK_PIN_RIGHT
|
|
|
|
|
|
|
|
choice 'Bit right' \
|
|
|
|
"Bit0 0 \
|
|
|
|
Bit1 1 \
|
|
|
|
Bit2 2 \
|
|
|
|
Bit3 3 \
|
|
|
|
Bit4 4 \
|
|
|
|
Bit5 5 \
|
|
|
|
Bit6 6 \
|
|
|
|
Bit7 7" \
|
|
|
|
'Bit3' JOYSTICK_BIT_RIGHT
|
|
|
|
|
|
|
|
choice 'Pin fire' \
|
|
|
|
"PINA PINA \
|
|
|
|
PINB PINB \
|
|
|
|
PINC PINC \
|
|
|
|
PIND PIND" \
|
|
|
|
'PIND' JOYSTICK_PIN_FIRE
|
|
|
|
|
|
|
|
choice 'Bit fire' \
|
|
|
|
"Bit0 0 \
|
|
|
|
Bit1 1 \
|
|
|
|
Bit2 2 \
|
|
|
|
Bit3 3 \
|
|
|
|
Bit4 4 \
|
|
|
|
Bit5 5 \
|
|
|
|
Bit6 6 \
|
|
|
|
Bit7 7" \
|
|
|
|
'Bit3' JOYSTICK_BIT_FIRE
|
|
|
|
fi
|
|
|
|
|
|
|
|
endmenu
|
|
|
|
###############################################################################
|
|
|
|
|
|
|
|
###################### NES-Pad menu #################################
|
|
|
|
dep_bool_menu "nes-pad support" NES_PAD_SUPPORT y
|
|
|
|
|
|
|
|
if [ "$NES_PAD_SUPPORT" = "y" ]; then
|
|
|
|
choice 'Port clk' \
|
|
|
|
"PORTA PORTA \
|
|
|
|
PORTB PORTB \
|
|
|
|
PORTC PORTC \
|
|
|
|
PORTD PORTD" \
|
|
|
|
'PORTB' NES_PAD_PORT_CLK
|
|
|
|
|
|
|
|
choice 'Port ds' \
|
|
|
|
"PORTA PORTA \
|
|
|
|
PORTB PORTB \
|
|
|
|
PORTC PORTC \
|
|
|
|
PORTD PORTD" \
|
|
|
|
'PORTB' NES_PAD_PORT_PL
|
|
|
|
|
|
|
|
choice 'Pin pl' \
|
|
|
|
"PORTA PORTA \
|
|
|
|
PORTB PORTB \
|
|
|
|
PORTC PORTC \
|
|
|
|
PORTD PORTD" \
|
|
|
|
'PORTB' NES_PAD_PORT_DS
|
|
|
|
|
|
|
|
choice 'Bit clk' \
|
|
|
|
"Bit0 0 \
|
|
|
|
Bit1 1 \
|
|
|
|
Bit2 2 \
|
|
|
|
Bit3 3 \
|
|
|
|
Bit4 4 \
|
|
|
|
Bit5 5 \
|
|
|
|
Bit6 6 \
|
|
|
|
Bit7 7" \
|
|
|
|
'Bit0' NES_PAD_BIT_CLK
|
|
|
|
|
|
|
|
choice 'Bit pl' \
|
|
|
|
"Bit0 0 \
|
|
|
|
Bit1 1 \
|
|
|
|
Bit2 2 \
|
|
|
|
Bit3 3 \
|
|
|
|
Bit4 4 \
|
|
|
|
Bit5 5 \
|
|
|
|
Bit6 6 \
|
|
|
|
Bit7 7" \
|
|
|
|
'Bit1' NES_PAD_BIT_PL
|
|
|
|
|
|
|
|
choice 'Bit ds' \
|
|
|
|
"Bit0 0 \
|
|
|
|
Bit1 1 \
|
|
|
|
Bit2 2 \
|
|
|
|
Bit3 3 \
|
|
|
|
Bit4 4 \
|
|
|
|
Bit5 5 \
|
|
|
|
Bit6 6 \
|
|
|
|
Bit7 7" \
|
|
|
|
'Bit2' NES_PAD_BIT_DS
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
endmenu
|
|
|
|
###############################################################################
|
|
|
|
|
|
|
|
###################### RFM12 joystick menu ####################################
|
|
|
|
dep_bool_menu "RFM12 Joystick support" RFM12_JOYSTICK_SUPPORT y
|
|
|
|
|
|
|
|
endmenu
|
|
|
|
|
|
|
|
###################### 74HC165 joystick menu #################################
|
|
|
|
dep_bool_menu "74HC165 joystick support" HC165_JOYSTICK_SUPPORT y
|
|
|
|
|
|
|
|
if [ "$HC165_JOYSTICK_SUPPORT" = "y" ]; then
|
|
|
|
choice 'Port load' \
|
|
|
|
"PORTA PORTA \
|
|
|
|
PORTB PORTB \
|
|
|
|
PORTC PORTC \
|
|
|
|
PORTD PORTD" \
|
|
|
|
'PORTD' HC165_JOYSTICK_PORT_LOAD
|
|
|
|
|
|
|
|
choice 'Bit load' \
|
|
|
|
"Bit0 0 \
|
|
|
|
Bit1 1 \
|
|
|
|
Bit2 2 \
|
|
|
|
Bit3 3 \
|
|
|
|
Bit4 4 \
|
|
|
|
Bit5 5 \
|
|
|
|
Bit6 6 \
|
|
|
|
Bit7 7" \
|
|
|
|
'Bit2' HC165_JOYSTICK_BIT_LOAD
|
|
|
|
fi
|
|
|
|
|
|
|
|
endmenu
|
|
|
|
###############################################################################
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
endmenu
|