Files
paparazzi/conf/firmwares/uart.makefile
T
Gautier Hattenberger 4ae40567ed [hitl] rewrite support for hardware in the loop simulation (#3146)
- old way (based on ins_vectornav) is not supported anymore
- directly send sensor data and receive commands with a dedicated link
- examples with USB link for better results
- update sphinx documentation
- compilation in a single build
2023-10-31 14:48:55 +01:00

24 lines
476 B
Makefile

# Hey Emacs, this is a -*- makefile -*-
ifndef UART_INCLUDED
UART_INCLUDED = 1
UART_SRCS = mcu_periph/uart.c $(SRC_ARCH)/mcu_periph/uart_arch.c
ifeq ($(ARCH), linux)
UART_SRCS += $(SRC_ARCH)/serial_port.c
endif
ifeq ($(TARGET), nps)
UART_CFLAGS += -Iarch/linux
UART_SRCS += arch/linux/serial_port.c
endif
ifeq ($(TARGET), sim)
UART_CFLAGS += -Iarch/linux
UART_SRCS += arch/linux/serial_port.c
endif
$(TARGET).CFLAGS += $(UART_CFLAGS)
$(TARGET).srcs += $(UART_SRCS)
endif