Commit a9234008 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

prototest makefile: add prototest_bench_{energy,cycles} switch

parent ec15c42a
Loading
Loading
Loading
Loading
+14 −5
Original line number Diff line number Diff line
loop ?= 1
ifeq (${prototest_bench_energy}, 1)
	loop = 1
	COMMON_FLAGS += -DPROTOTEST_BENCH_ENERGY
endif

ifeq (${prototest_bench_cycles}, 1)
	loop = 0
	arch_drivers += ,counter
	COMMON_FLAGS += -DPROTOTEST_BENCH_CYCLES
endif

ifeq (${prototest_include_global}, 1)
	COMMON_FLAGS += -DPROTOTEST_INCLUDE_GLOBAL
ifneq (${prototest_include_global}, )
	COMMON_FLAGS += -DPROTOTEST_INCLUDE_GLOBAL=${prototest_include_global}
endif

ifeq (${prototest_include_local}, 1)
	COMMON_FLAGS += -DPROTOTEST_INCLUDE_LOCAL
ifneq (${prototest_include_local}, )
	COMMON_FLAGS += -DPROTOTEST_INCLUDE_LOCAL=${prototest_include_local}
endif

ifeq (${prototest_arduinojson}, 1)