2015-01-06 00:19:24 +01:00
|
|
|
# include module specific includes
|
|
|
|
export INCLUDES += -I$(RIOTCPU)/kinetis_common/include
|
2015-02-05 15:34:51 +01:00
|
|
|
|
|
|
|
# Add search path for linker scripts
|
|
|
|
export LINKFLAGS += -L$(RIOTCPU)/kinetis_common/ldscripts
|
2015-02-09 13:50:37 +01:00
|
|
|
|
2017-05-26 16:07:48 +02:00
|
|
|
# Use generic linkerscripts for all Kinetis based CPUs
|
|
|
|
export LINKER_SCRIPT ?= $(LD_$(shell echo $(CPU_MODEL) | tr a-z A-Z))
|
|
|
|
|
2015-06-12 18:42:34 +02:00
|
|
|
# add the CPU specific code for the linker
|
2016-10-18 23:27:59 +02:00
|
|
|
export UNDEF += $(BINDIR)/kinetis_common/fcfield.o
|
2015-05-14 19:59:05 +02:00
|
|
|
|
2017-10-16 15:53:15 +02:00
|
|
|
# add the CPU specific interrupt vector table definition for the linker
|
|
|
|
export UNDEF += $(BINDIR)/kinetis_common/vectors.o
|
|
|
|
|
2016-02-12 00:46:49 +01:00
|
|
|
# include kinetis common periph drivers
|
|
|
|
export USEMODULE += kinetis_common_periph
|
2016-11-08 18:19:12 +01:00
|
|
|
export USEMODULE += periph_common
|
2016-02-12 00:46:49 +01:00
|
|
|
|
2017-01-09 22:55:53 +01:00
|
|
|
#include layered power mode module
|
|
|
|
USEMODULE += pm_layered
|
|
|
|
|
2015-05-14 19:59:05 +02:00
|
|
|
# Define a recipe to build the watchdog disable binary, used when flashing
|
|
|
|
$(RIOTCPU)/kinetis_common/dist/wdog-disable.bin: $(RIOTCPU)/kinetis_common/dist/wdog-disable.s
|
2016-12-17 01:16:59 +01:00
|
|
|
$(Q)$(MAKE) -C $(RIOTCPU)/kinetis_common/dist/ $(notdir $@)
|
2015-05-14 19:59:05 +02:00
|
|
|
|
|
|
|
# Reset the default goal to not make wdog-disable.bin the default target.
|
|
|
|
.DEFAULT_GOAL :=
|