mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-09 14:18:00 +08:00
4ae40567ed
- 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
24 lines
476 B
Makefile
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
|