Add bootmagic.c and fix bootloader_jump
This commit is contained in:
@@ -39,4 +39,6 @@ LUFA_OPTS += -D USE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENAB
|
||||
OPT_DEFS += -DF_USB=$(F_USB)UL
|
||||
OPT_DEFS += -DARCH=ARCH_$(ARCH)
|
||||
OPT_DEFS += $(LUFA_OPTS)
|
||||
OPT_DEFS += -DHOST_LUFA
|
||||
|
||||
# This indicates using LUFA stack
|
||||
OPT_DEFS += -DPROTOCOL_LUFA
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
PJRC_DIR = protocol/pjrc
|
||||
|
||||
OPT_DEFS += -DHOST_PJRC
|
||||
|
||||
SRC += $(PJRC_DIR)/main.c \
|
||||
$(PJRC_DIR)/pjrc.c \
|
||||
$(PJRC_DIR)/usb_keyboard.c \
|
||||
@@ -19,3 +17,9 @@ endif
|
||||
|
||||
# Search Path
|
||||
VPATH += $(TOP_DIR)/$(PJRC_DIR)
|
||||
|
||||
# This indicates using LUFA stack
|
||||
# TODO: remove HOST_PJRC
|
||||
OPT_DEFS += -DHOST_PJRC
|
||||
OPT_DEFS += -DPROTOCOL_PJRC
|
||||
|
||||
|
||||
Reference in New Issue
Block a user