30 lines
648 B
Makefile
30 lines
648 B
Makefile
TARGET := gps_system
|
|
|
|
# The current Genesys2 Rocket/fabric domain that clocks the UART is 50 MHz.
|
|
# Keep the requested 115200 baud physical rather than producing 57600 baud
|
|
# with the common 100 MHz fallback divider.
|
|
BSP_UART_CLOCK_HZ ?= 50000000
|
|
|
|
APP_SRCS := \
|
|
gps_test.c \
|
|
src/gps_ip.c \
|
|
src/gps_interrupt_handlers.c \
|
|
src/gps_time_anchor.c \
|
|
src/gps_pps.c \
|
|
src/linked_list.c \
|
|
src/NavEquations.c \
|
|
src/matrixLib.c
|
|
|
|
include ../common/app.mk
|
|
|
|
CFLAGS += -Iheader
|
|
LDLIBS += -lm
|
|
|
|
ifeq ($(GPS_DEBUG),1)
|
|
CFLAGS += -DDEBUG -DGPS_DEBUG_LEVEL=$(GPS_DEBUG_LEVEL)
|
|
endif
|
|
|
|
ifeq ($(GPS_NAV_DIAGNOSTICS),1)
|
|
CFLAGS += -DGPS_NAV_JUMP_DIAGNOSTICS=1
|
|
endif
|