mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-27 08:55:51 +08:00
[fixedwing] fix intermcu_uart
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user