Add serial_link compilation to Infinity Ergodox
This commit is contained in:
		
							parent
							
								
									c6d671e54c
								
							
						
					
					
						commit
						a7e3e4e652
					
				
					 3 changed files with 22 additions and 1 deletions
				
			
		
							
								
								
									
										12
									
								
								Makefile
									
										
									
									
									
								
							
							
						
						
									
										12
									
								
								Makefile
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -198,10 +198,20 @@ ifeq ($(strip $(RGBLIGHT_ENABLE)), yes)
 | 
			
		|||
endif
 | 
			
		||||
 | 
			
		||||
ifeq ($(strip $(TAP_DANCE_ENABLE)), yes)
 | 
			
		||||
  OPT_DEFS += -DTAP_DANCE_ENABLE
 | 
			
		||||
	OPT_DEFS += -DTAP_DANCE_ENABLE
 | 
			
		||||
	SRC += $(QUANTUM_DIR)/process_keycode/process_tap_dance.c
 | 
			
		||||
endif
 | 
			
		||||
 | 
			
		||||
ifeq ($(strip $(SERIAL_LINK_ENABLE)), yes)
 | 
			
		||||
	SERIAL_DIR = $(QUANTUM_DIR)/serial_link
 | 
			
		||||
	SERIAL_PATH = $(QUANTUM_PATH)/serial_link
 | 
			
		||||
	SERIAL_SRC = $(wildcard $(SERIAL_PATH)/protocol/*.c)
 | 
			
		||||
	SERIAL_SRC += $(wildcard $(SERIAL_PATH)/system/*.c)
 | 
			
		||||
	SRC += $(patsubst $(QUANTUM_PATH)/%,%,$(SERIAL_SRC))
 | 
			
		||||
	OPT_DEFS += -DUSE_SERIAL_LINK
 | 
			
		||||
	VAPTH += $(SERIAL_PATH)
 | 
			
		||||
endif
 | 
			
		||||
 | 
			
		||||
# Optimize size but this may cause error "relocation truncated to fit"
 | 
			
		||||
#EXTRALDFLAGS = -Wl,--relax
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -66,6 +66,7 @@ COMMAND_ENABLE ?= yes    # Commands for debug and configuration
 | 
			
		|||
SLEEP_LED_ENABLE ?= yes  # Breathing sleep LED during USB suspend
 | 
			
		||||
NKRO_ENABLE ?= yes	    # USB Nkey Rollover
 | 
			
		||||
CUSTOM_MATRIX ?= yes # Custom matrix file
 | 
			
		||||
SERIAL_LINK_ENABLE = yes
 | 
			
		||||
 | 
			
		||||
ifndef QUANTUM_DIR
 | 
			
		||||
	include ../../Makefile
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1 +1,11 @@
 | 
			
		|||
#include "infinity_ergodox.h"
 | 
			
		||||
#include "ch.h"
 | 
			
		||||
#include "hal.h"
 | 
			
		||||
#include "serial_link/system/serial_link.h"
 | 
			
		||||
 | 
			
		||||
void init_serial_link_hal(void) {
 | 
			
		||||
    PORTA->PCR[1] = PORTx_PCRn_PE | PORTx_PCRn_PS | PORTx_PCRn_PFE | PORTx_PCRn_MUX(2);
 | 
			
		||||
    PORTA->PCR[2] = PORTx_PCRn_DSE | PORTx_PCRn_SRE | PORTx_PCRn_MUX(2);
 | 
			
		||||
    PORTE->PCR[0] = PORTx_PCRn_PE | PORTx_PCRn_PS | PORTx_PCRn_PFE | PORTx_PCRn_MUX(3);
 | 
			
		||||
    PORTE->PCR[1] = PORTx_PCRn_DSE | PORTx_PCRn_SRE | PORTx_PCRn_MUX(3);
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue