did this ever work? adde makefile, fixed faulty config menu
This commit is contained in:
parent
2182e45c88
commit
00244f7e6d
|
@ -0,0 +1,13 @@
|
||||||
|
TARGET = libcan.a
|
||||||
|
TOPDIR = ..
|
||||||
|
|
||||||
|
include $(TOPDIR)/defaults.mk
|
||||||
|
|
||||||
|
ifeq ($(CAN_SUPPORT),y)
|
||||||
|
SRC = can.c
|
||||||
|
SRC += borg_can.c
|
||||||
|
SRC += lap.c
|
||||||
|
SRC += spi.c
|
||||||
|
endif
|
||||||
|
|
||||||
|
include $(TOPDIR)/rules.mk
|
|
@ -54,17 +54,16 @@ if [ "$CAN_SUPPORT" = "y" ]; then
|
||||||
Bit7 7" \
|
Bit7 7" \
|
||||||
'Bit4' SPI_PIN_SS
|
'Bit4' SPI_PIN_SS
|
||||||
|
|
||||||
dep_bool_menu "Use interrupt" CAN_INTERRUPT y
|
bool "Use AVR hardware interrupt" CAN_INTERRUPT
|
||||||
|
|
||||||
if [ "$CAN_INTERRUPT" = "y" ]; then
|
choice 'MCP Interrupt Port' \
|
||||||
choice 'Interrupt Port' \
|
|
||||||
"PINA PINA \
|
"PINA PINA \
|
||||||
PINB PINB \
|
PINB PINB \
|
||||||
PINC PINC \
|
PINC PINC \
|
||||||
PIND PIND" \
|
PIND PIND" \
|
||||||
'PIND' SPI_REG_PIN_MCP_INT
|
'PIND' SPI_REG_PIN_MCP_INT
|
||||||
|
|
||||||
choice 'Interrupt Bit' \
|
choice 'MCP Interrupt Bit' \
|
||||||
"Bit0 0 \
|
"Bit0 0 \
|
||||||
Bit1 1 \
|
Bit1 1 \
|
||||||
Bit2 2 \
|
Bit2 2 \
|
||||||
|
@ -76,5 +75,3 @@ if [ "$CAN_SUPPORT" = "y" ]; then
|
||||||
'Bit2' SPI_PIN_MCP_INT
|
'Bit2' SPI_PIN_MCP_INT
|
||||||
fi
|
fi
|
||||||
endmenu
|
endmenu
|
||||||
fi
|
|
||||||
endmenu
|
|
||||||
|
|
Loading…
Reference in New Issue