Add bootmagic.c and fix bootloader_jump
This commit is contained in:
		
							parent
							
								
									359b68d35f
								
							
						
					
					
						commit
						4d64fd8faa
					
				
					 9 changed files with 182 additions and 58 deletions
				
			
		| 
						 | 
				
			
			@ -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
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue