2019-10-04 15:48:46 +02:00
|
|
|
ifeq ($(OS),Linux)
|
|
|
|
ifneq (,$(filter periph_gpio,$(USEMODULE)))
|
2020-07-21 23:40:40 +02:00
|
|
|
ifeq (,$(filter periph_gpio_mock,$(USEMODULE)))
|
|
|
|
USEMODULE += periph_gpio_linux
|
|
|
|
endif
|
2019-10-04 15:48:46 +02:00
|
|
|
endif
|
|
|
|
ifneq (,$(filter periph_spi,$(USEMODULE)))
|
|
|
|
USEMODULE += periph_spidev_linux
|
|
|
|
endif
|
2020-07-21 23:40:40 +02:00
|
|
|
else
|
|
|
|
ifneq (,$(filter periph_gpio,$(USEMODULE)))
|
|
|
|
USEMODULE += periph_gpio_mock
|
|
|
|
endif
|
2019-04-06 06:24:22 +02:00
|
|
|
endif
|
2019-10-04 15:48:46 +02:00
|
|
|
|
2019-12-18 11:56:23 +01:00
|
|
|
ifeq (,$(filter stdio_%,$(USEMODULE)))
|
|
|
|
USEMODULE += stdio_native
|
|
|
|
endif
|
2020-09-09 16:59:18 +02:00
|
|
|
|
|
|
|
ifneq (,$(filter periph_rtc,$(USEMODULE)))
|
2020-08-14 17:43:16 +02:00
|
|
|
USEMODULE += xtimer
|
|
|
|
endif
|
2020-05-20 18:22:45 +02:00
|
|
|
|
|
|
|
USEMODULE += periph
|
|
|
|
|
|
|
|
# UART is needed by startup.c
|
|
|
|
USEMODULE += periph_uart
|