Hide CAN options, if CAN support is disabled

This commit is contained in:
alu 2010-04-18 03:00:20 +00:00
parent 284fce9da8
commit f703054e93
1 changed files with 69 additions and 67 deletions

View File

@ -1,5 +1,6 @@
dep_bool_menu "CAN bus support" CAN_SUPPORT y dep_bool_menu "CAN bus support" CAN_SUPPORT y
if [ "$CAN_SUPPORT" = "y" ]; then
bool 'Use MCU builtin SPI support' SPI_HARDWARE bool 'Use MCU builtin SPI support' SPI_HARDWARE
choice 'SPI Port' \ choice 'SPI Port' \
@ -55,6 +56,7 @@ choice 'Bit SS' \
dep_bool_menu "Use interrupt" CAN_INTERRUPT y dep_bool_menu "Use interrupt" CAN_INTERRUPT y
if [ "$CAN_INTERRUPT" = "y" ]; then
choice 'Interrupt Port' \ choice 'Interrupt Port' \
"PINA PINA \ "PINA PINA \
PINB PINB \ PINB PINB \
@ -72,7 +74,7 @@ choice 'Interrupt Bit' \
Bit6 6 \ Bit6 6 \
Bit7 7" \ Bit7 7" \
'Bit2' SPI_PIN_MCP_INT 'Bit2' SPI_PIN_MCP_INT
fi
endmenu endmenu
fi
endmenu endmenu