|
|
@ -1,15 +1,16 @@ |
|
|
|
dep_bool_menu "CAN bus support" CAN_SUPPORT y |
|
|
|
|
|
|
|
bool 'Use MCU builtin SPI support' SPI_HARDWARE |
|
|
|
if [ "$CAN_SUPPORT" = "y" ]; then |
|
|
|
bool 'Use MCU builtin SPI support' SPI_HARDWARE |
|
|
|
|
|
|
|
choice 'SPI Port' \ |
|
|
|
choice 'SPI Port' \ |
|
|
|
"PORTA 0 \ |
|
|
|
PORTB 1 \ |
|
|
|
PORTC 2 \ |
|
|
|
PORTD 3" \ |
|
|
|
'PORTB' SPI_PORTIDX |
|
|
|
|
|
|
|
choice 'Bit MOSI' \ |
|
|
|
choice 'Bit MOSI' \ |
|
|
|
"Bit0 0 \ |
|
|
|
Bit1 1 \ |
|
|
|
Bit2 2 \ |
|
|
@ -20,7 +21,7 @@ choice 'Bit MOSI' \ |
|
|
|
Bit7 7" \ |
|
|
|
'Bit5' SPI_PIN_MOSI |
|
|
|
|
|
|
|
choice 'Bit MISO' \ |
|
|
|
choice 'Bit MISO' \ |
|
|
|
"Bit0 0 \ |
|
|
|
Bit1 1 \ |
|
|
|
Bit2 2 \ |
|
|
@ -31,7 +32,7 @@ choice 'Bit MISO' \ |
|
|
|
Bit7 7" \ |
|
|
|
'Bit6' SPI_PIN_MISO |
|
|
|
|
|
|
|
choice 'Bit SCK' \ |
|
|
|
choice 'Bit SCK' \ |
|
|
|
"Bit0 0 \ |
|
|
|
Bit1 1 \ |
|
|
|
Bit2 2 \ |
|
|
@ -42,7 +43,7 @@ choice 'Bit SCK' \ |
|
|
|
Bit7 7" \ |
|
|
|
'Bit7' SPI_PIN_SCK |
|
|
|
|
|
|
|
choice 'Bit SS' \ |
|
|
|
choice 'Bit SS' \ |
|
|
|
"Bit0 0 \ |
|
|
|
Bit1 1 \ |
|
|
|
Bit2 2 \ |
|
|
@ -53,16 +54,17 @@ choice 'Bit SS' \ |
|
|
|
Bit7 7" \ |
|
|
|
'Bit4' SPI_PIN_SS |
|
|
|
|
|
|
|
dep_bool_menu "Use interrupt" CAN_INTERRUPT y |
|
|
|
dep_bool_menu "Use interrupt" CAN_INTERRUPT y |
|
|
|
|
|
|
|
choice 'Interrupt Port' \ |
|
|
|
if [ "$CAN_INTERRUPT" = "y" ]; then |
|
|
|
choice 'Interrupt Port' \ |
|
|
|
"PINA PINA \ |
|
|
|
PINB PINB \ |
|
|
|
PINC PINC \ |
|
|
|
PIND PIND" \ |
|
|
|
'PIND' SPI_REG_PIN_MCP_INT |
|
|
|
|
|
|
|
choice 'Interrupt Bit' \ |
|
|
|
choice 'Interrupt Bit' \ |
|
|
|
"Bit0 0 \ |
|
|
|
Bit1 1 \ |
|
|
|
Bit2 2 \ |
|
|
@ -72,7 +74,7 @@ choice 'Interrupt Bit' \ |
|
|
|
Bit6 6 \ |
|
|
|
Bit7 7" \ |
|
|
|
'Bit2' SPI_PIN_MCP_INT |
|
|
|
|
|
|
|
endmenu |
|
|
|
|
|
|
|
fi |
|
|
|
endmenu |
|
|
|
fi |
|
|
|
endmenu |
|
|
|