JTAG=msp430-jtag
-#N.B., gcc WILL NOT BITCH if this file doesn't exist.
GCCINC?=
#GCC?=avr-gcc
ifeq ($(platform),tilaunchpad)
config ?= monitor chipcon i2c
else
-config ?= monitor chipcon spi jtag430 jtag430x2 avr openocd ccspi
+config ?= monitor chipcon spi jtag430 jtag430x2 avr openocd ccspi maxusb
endif
endif
endif
+# include MAX342x USB drivers.
+ifeq ($(filter maxusb, $(config)), maxusb)
+ ifneq ($(filter apps/usb/maxusb.o, $(apps)), apps/usb/maxusb.o)
+ apps+= apps/usb/maxusb.o
+ hdrs+= maxusb.h
+ endif
+endif
+
# include the sbw defs if they specified it
ifeq ($(filter sbw, $(config)), sbw)
# if they only specify sbw, include jtag