2020-05-22 17:12:11 +02:00
|
|
|
MODULE = stm32_clk
|
|
|
|
|
2020-08-03 00:33:59 +02:00
|
|
|
ifneq (mp1,$(CPU_FAM))
|
|
|
|
SRC = stmclk_common.c
|
|
|
|
endif
|
2020-05-22 17:12:11 +02:00
|
|
|
|
2020-08-31 15:50:02 +02:00
|
|
|
ifneq (,$(filter $(CPU_FAM),f2 f4 f7))
|
|
|
|
SRC += stmclk_f2f4f7.c
|
2020-08-31 10:47:09 +02:00
|
|
|
else ifneq (,$(filter $(CPU_FAM),f0 f1 f3))
|
|
|
|
SRC += stmclk_f0f1f3.c
|
2020-05-26 11:12:06 +02:00
|
|
|
else ifneq (,$(filter $(CPU_FAM),l0 l1))
|
2020-05-22 17:12:11 +02:00
|
|
|
SRC += stmclk_l0l1.c
|
2021-03-05 01:00:00 +01:00
|
|
|
else ifneq (,$(filter $(CPU_FAM),l4 wb wl))
|
2021-03-08 01:00:00 +01:00
|
|
|
SRC += stmclk_l4wx.c
|
2020-09-28 15:57:01 +02:00
|
|
|
else ifneq (,$(filter $(CPU_FAM),l5))
|
|
|
|
SRC += stmclk_l5.c
|
2020-05-03 22:22:10 +02:00
|
|
|
else ifneq (,$(filter $(CPU_FAM),g0 g4))
|
|
|
|
SRC += stmclk_gx.c
|
2020-08-03 00:33:59 +02:00
|
|
|
else ifneq (,$(filter $(CPU_FAM),mp1))
|
2020-09-05 01:33:45 +02:00
|
|
|
ifneq (,$(filter stm32mp1_eng_mode,$(USEMODULE)))
|
|
|
|
SRC = stmclk_mp1.c
|
|
|
|
else
|
|
|
|
# Do not use *.c as SRC if SRC is empty (see Makefile.base)
|
|
|
|
NO_AUTO_SRC = 1
|
|
|
|
endif
|
2020-05-22 17:12:11 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
include $(RIOTBASE)/Makefile.base
|