From 00244f7e6d1bcc5aed1924db16b9b63f0446fa4d Mon Sep 17 00:00:00 2001 From: Hans-Gert Dahmen Date: Fri, 28 Oct 2011 20:03:02 +0000 Subject: [PATCH] did this ever work? adde makefile, fixed faulty config menu --- can/Makefile | 13 +++++++++++++ can/config.in | 37 +++++++++++++++++-------------------- 2 files changed, 30 insertions(+), 20 deletions(-) create mode 100644 can/Makefile diff --git a/can/Makefile b/can/Makefile new file mode 100644 index 0000000..bc1001a --- /dev/null +++ b/can/Makefile @@ -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 diff --git a/can/config.in b/can/config.in index 9c003c2..8d03599 100644 --- a/can/config.in +++ b/can/config.in @@ -54,27 +54,24 @@ if [ "$CAN_SUPPORT" = "y" ]; then Bit7 7" \ '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 'Interrupt Port' \ - "PINA PINA \ - PINB PINB \ - PINC PINC \ - PIND PIND" \ - 'PIND' SPI_REG_PIN_MCP_INT + choice 'MCP Interrupt Port' \ + "PINA PINA \ + PINB PINB \ + PINC PINC \ + 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 - fi - endmenu + choice 'MCP 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