can support menu fixes, include header file
This commit is contained in:
parent
9b44776ec8
commit
922b3106ed
|
@ -1,5 +1,7 @@
|
||||||
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
|
||||||
|
|
||||||
choice 'SPI Port' \
|
choice 'SPI Port' \
|
||||||
"PORTA 0 \
|
"PORTA 0 \
|
||||||
PORTB 1 \
|
PORTB 1 \
|
||||||
|
@ -51,7 +53,7 @@ choice 'Bit SS' \
|
||||||
Bit7 7" \
|
Bit7 7" \
|
||||||
'Bit4' SPI_PIN_SS
|
'Bit4' SPI_PIN_SS
|
||||||
|
|
||||||
bool "Use interrupt" CAN_INTERRUPT
|
dep_bool_menu "Use interrupt" CAN_INTERRUPT y
|
||||||
|
|
||||||
choice 'Interrupt Port' \
|
choice 'Interrupt Port' \
|
||||||
"PINA PINA \
|
"PINA PINA \
|
||||||
|
@ -72,3 +74,5 @@ choice 'Interrupt Bit' \
|
||||||
'Bit2' SPI_PIN_MCP_INT
|
'Bit2' SPI_PIN_MCP_INT
|
||||||
|
|
||||||
endmenu
|
endmenu
|
||||||
|
|
||||||
|
endmenu
|
||||||
|
|
1
config.h
1
config.h
|
@ -16,7 +16,6 @@
|
||||||
|
|
||||||
#define BORG_CAN
|
#define BORG_CAN
|
||||||
// spi.[ch] defines
|
// spi.[ch] defines
|
||||||
#define SPI_HARDWARE
|
|
||||||
|
|
||||||
#if SPI_PORTIDX == 0
|
#if SPI_PORTIDX == 0
|
||||||
#define SPI_PORT PORTA
|
#define SPI_PORT PORTA
|
||||||
|
|
Loading…
Reference in New Issue