[fixedwing] fix intermcu_uart

This commit is contained in:
Felix Ruess
2015-03-17 10:00:05 +01:00
parent d09d162ceb
commit de414142d4
@@ -8,16 +8,12 @@ $(error Using intermcu via UART, so dual mcu with separate fbw. Please add <conf
endif endif
ifeq ($(TARGET),fbw) ifeq ($(TARGET),fbw)
ifeq ($(INTERMCU_PORT),none) INTERMCU_PORT ?= UART2
INTERMCU_PORT = UART2 INTERMCU_PORT_LOWER = $(shell echo $(INTERMCU_PORT) | tr A-Z a-z)
INTERMCU_PORT_LOWER = $(shell echo $(INTERMCU_PORT) | tr A-Z a-z)
endif
fbw.CFLAGS += -DINTERMCU_LINK=$(INTERMCU_PORT_LOWER) -DUSE_$(INTERMCU_PORT) -D$(INTERMCU_PORT)_BAUD=B57600 fbw.CFLAGS += -DINTERMCU_LINK=$(INTERMCU_PORT_LOWER) -DUSE_$(INTERMCU_PORT) -D$(INTERMCU_PORT)_BAUD=B57600
else else
ifeq ($(INTERMCU_PORT),none) INTERMCU_PORT ?= UART5
INTERMCU_PORT = UART5 INTERMCU_PORT_LOWER = $(shell echo $(INTERMCU_PORT) | tr A-Z a-z)
INTERMCU_PORT_LOWER = $(shell echo $(INTERMCU_PORT) | tr A-Z a-z)
endif
ap.CFLAGS += -DINTERMCU_LINK=$(INTERMCU_PORT_LOWER) -DUSE_$(INTERMCU_PORT) -D$(INTERMCU_PORT)_BAUD=B57600 ap.CFLAGS += -DINTERMCU_LINK=$(INTERMCU_PORT_LOWER) -DUSE_$(INTERMCU_PORT) -D$(INTERMCU_PORT)_BAUD=B57600
endif endif