1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-20 10:54:14 +01:00

OP-1365 Flight code instrumentation API: Allow to pass DIAG_INSTRUMENTATION=YES option to make to enable instrumentation without changing board level settings

This commit is contained in:
Alessio Morale 2014-06-10 21:49:30 +02:00
parent 16cb081f5c
commit 88e392260c

View File

@ -35,6 +35,7 @@ DIAG_MIXERSTATUS ?= NO
DIAG_RATEDESIRED ?= NO
DIAG_I2C_WDG_STATS ?= NO
DIAG_TASKS ?= NO
DIAG_INSTRUMENTATION ?=NO
# Or just turn on all the above diagnostics. WARNING: this consumes massive amounts of memory.
DIAG_ALL ?= NO
@ -91,6 +92,9 @@ ifneq (,$(filter YES,$(DIAG_TASKS) $(DIAG_ALL)))
CFLAGS += -DDIAG_TASKS
endif
ifneq (,$(filter YES,$(DIAG_INSTRUMENTATION) $(DIAG_ALL)))
CFLAGS += -DPIOS_INCLUDE_INSTRUMENTATION
endif
# Place project-specific -D and/or -U options for Assembler with preprocessor here.
#ADEFS = -DUSE_IRQ_ASM_WRAPPER
ADEFS = -D__ASSEMBLY__