2016-02-12 00:49:30 +01:00
|
|
|
MODULE = stm32_common_periph
|
2016-02-08 21:18:05 +01:00
|
|
|
|
2018-10-11 15:13:15 +02:00
|
|
|
# Select the specific implementation for `periph_i2c`
|
|
|
|
ifneq (,$(filter periph_i2c,$(USEMODULE)))
|
|
|
|
ifneq (,$(filter $(CPU),stm32f0 stm32f3 stm32f7 stm32l0 stm32l4))
|
|
|
|
SRC += i2c_1.c
|
|
|
|
else # stm32f1/f2/f4/l1
|
|
|
|
SRC += i2c_2.c
|
|
|
|
endif
|
|
|
|
endif
|
2018-05-31 15:56:53 +02:00
|
|
|
|
2018-10-11 15:20:44 +02:00
|
|
|
# flashpage and eeprom periph implementations share flash lock/unlock functions
|
|
|
|
# defined in flash_common.c
|
|
|
|
ifneq (,$(filter periph_flashpage periph_eeprom,$(USEMODULE)))
|
|
|
|
SRC += flash_common.c
|
|
|
|
endif
|
|
|
|
|
2017-03-22 15:20:14 +01:00
|
|
|
include $(RIOTMAKE)/periph.mk
|