Added HID class bootloader, compatible with a modified version of the command line Teensy loader from PJRC.com.

This commit is contained in:
Dean Camera 2011-02-09 21:34:00 +00:00
parent 5430e1973c
commit cae0fa73d7
16 changed files with 4522 additions and 8 deletions

View file

@ -0,0 +1,21 @@
OS ?= FreeBSD
#OS ?= NetBSD
#OS ?= OpenBSD
CFLAGS ?= -O2 -Wall
CC ?= gcc
.if $(OS) == "FreeBSD"
CFLAGS += -DUSE_LIBUSB
LIBS = -lusb
.elif $(OS) == "NetBSD" || $(OS) == "OpenBSD"
CFLAGS += -DUSE_UHID
LIBS =
.endif
teensy_loader_cli: teensy_loader_cli.c
$(CC) $(CFLAGS) -s -o teensy_loader_cli teensy_loader_cli.c $(LIBS)
clean:
rm -f teensy_loader_cli