alu
15 years ago
1 changed files with 69 additions and 67 deletions
@ -1,78 +1,80 @@ |
|||||
dep_bool_menu "CAN bus support" CAN_SUPPORT y |
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 \ |
"PORTA 0 \ |
||||
PORTB 1 \ |
PORTB 1 \ |
||||
PORTC 2 \ |
PORTC 2 \ |
||||
PORTD 3" \ |
PORTD 3" \ |
||||
'PORTB' SPI_PORTIDX |
'PORTB' SPI_PORTIDX |
||||
|
|
||||
choice 'Bit MOSI' \ |
choice 'Bit MOSI' \ |
||||
"Bit0 0 \ |
"Bit0 0 \ |
||||
Bit1 1 \ |
Bit1 1 \ |
||||
Bit2 2 \ |
Bit2 2 \ |
||||
Bit3 3 \ |
Bit3 3 \ |
||||
Bit4 4 \ |
Bit4 4 \ |
||||
Bit5 5 \ |
Bit5 5 \ |
||||
Bit6 6 \ |
Bit6 6 \ |
||||
Bit7 7" \ |
Bit7 7" \ |
||||
'Bit5' SPI_PIN_MOSI |
'Bit5' SPI_PIN_MOSI |
||||
|
|
||||
choice 'Bit MISO' \ |
choice 'Bit MISO' \ |
||||
"Bit0 0 \ |
"Bit0 0 \ |
||||
Bit1 1 \ |
Bit1 1 \ |
||||
Bit2 2 \ |
Bit2 2 \ |
||||
Bit3 3 \ |
Bit3 3 \ |
||||
Bit4 4 \ |
Bit4 4 \ |
||||
Bit5 5 \ |
Bit5 5 \ |
||||
Bit6 6 \ |
Bit6 6 \ |
||||
Bit7 7" \ |
Bit7 7" \ |
||||
'Bit6' SPI_PIN_MISO |
'Bit6' SPI_PIN_MISO |
||||
|
|
||||
choice 'Bit SCK' \ |
choice 'Bit SCK' \ |
||||
"Bit0 0 \ |
"Bit0 0 \ |
||||
Bit1 1 \ |
Bit1 1 \ |
||||
Bit2 2 \ |
Bit2 2 \ |
||||
Bit3 3 \ |
Bit3 3 \ |
||||
Bit4 4 \ |
Bit4 4 \ |
||||
Bit5 5 \ |
Bit5 5 \ |
||||
Bit6 6 \ |
Bit6 6 \ |
||||
Bit7 7" \ |
Bit7 7" \ |
||||
'Bit7' SPI_PIN_SCK |
'Bit7' SPI_PIN_SCK |
||||
|
|
||||
choice 'Bit SS' \ |
choice 'Bit SS' \ |
||||
"Bit0 0 \ |
"Bit0 0 \ |
||||
Bit1 1 \ |
Bit1 1 \ |
||||
Bit2 2 \ |
Bit2 2 \ |
||||
Bit3 3 \ |
Bit3 3 \ |
||||
Bit4 4 \ |
Bit4 4 \ |
||||
Bit5 5 \ |
Bit5 5 \ |
||||
Bit6 6 \ |
Bit6 6 \ |
||||
Bit7 7" \ |
Bit7 7" \ |
||||
'Bit4' SPI_PIN_SS |
'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 |
||||
"PINA PINA \ |
choice 'Interrupt Port' \ |
||||
PINB PINB \ |
"PINA PINA \ |
||||
PINC PINC \ |
PINB PINB \ |
||||
PIND PIND" \ |
PINC PINC \ |
||||
'PIND' SPI_REG_PIN_MCP_INT |
PIND PIND" \ |
||||
|
'PIND' SPI_REG_PIN_MCP_INT |
||||
choice 'Interrupt Bit' \ |
|
||||
"Bit0 0 \ |
|
||||
Bit1 1 \ |
|
||||
Bit2 2 \ |
|
||||
Bit3 3 \ |
|
||||
Bit4 4 \ |
|
||||
Bit5 5 \ |
|
||||
Bit6 6 \ |
|
||||
Bit7 7" \ |
|
||||
'Bit2' SPI_PIN_MCP_INT |
|
||||
|
|
||||
endmenu |
|
||||
|
|
||||
|
choice 'Interrupt Bit' \ |
||||
|
"Bit0 0 \ |
||||
|
Bit1 1 \ |
||||
|
Bit2 2 \ |
||||
|
Bit3 3 \ |
||||
|
Bit4 4 \ |
||||
|
Bit5 5 \ |
||||
|
Bit6 6 \ |
||||
|
Bit7 7" \ |
||||
|
'Bit2' SPI_PIN_MCP_INT |
||||
|
fi |
||||
|
endmenu |
||||
|
fi |
||||
endmenu |
endmenu |
||||
|
Loading…
Reference in new issue