2016-08-15 22:41:07 +02:00
|
|
|
# Define the CPU family so we can differentiate between them in the code
|
|
|
|
CFLAGS += -DCPU_FAM_$(shell echo $(CPU_FAM) | tr 'a-z-' 'A-Z_')
|
2016-02-08 18:22:11 +01:00
|
|
|
|
|
|
|
# this CPU implementation doesn't use CMSIS initialization
|
|
|
|
export CFLAGS += -DDONT_USE_CMSIS_INIT
|
|
|
|
|
2016-12-15 11:39:19 +01:00
|
|
|
# for the sam[drl] CPUs we hold all linkerscripts in the sam0 common folder
|
2016-12-15 11:45:53 +01:00
|
|
|
export LINKFLAGS += -L$(RIOTCPU)/sam0_common/ldscripts
|
2016-12-15 11:39:19 +01:00
|
|
|
|
2016-02-08 18:22:11 +01:00
|
|
|
# use common periph functions
|
|
|
|
USEMODULE += periph_common
|
|
|
|
|
2016-12-15 11:45:53 +01:00
|
|
|
# include sam0 common periph drivers
|
|
|
|
USEMODULE += sam0_common_periph
|
2016-02-12 00:49:43 +01:00
|
|
|
|
2016-02-08 18:22:11 +01:00
|
|
|
# export the common include directory
|
2016-12-15 11:45:53 +01:00
|
|
|
export INCLUDES += -I$(RIOTCPU)/sam0_common/include
|