2016-02-12 00:46:49 +01:00
|
|
|
MODULE = nrf5x_common_periph
|
2016-02-07 12:52:55 +01:00
|
|
|
|
2021-09-05 21:47:38 +02:00
|
|
|
# Select the specific implementation for `periph_i2c`
|
|
|
|
ifneq (,$(filter periph_i2c,$(USEMODULE)))
|
2023-07-05 15:35:33 +02:00
|
|
|
ifneq (,$(filter $(CPU_FAM),nrf52 nrf53 nrf9160))
|
2021-09-05 21:47:38 +02:00
|
|
|
SRC += i2c_nrf52_nrf9160.c
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2023-07-07 09:07:15 +02:00
|
|
|
# Select the specific implementation for `periph_pwm`
|
|
|
|
# nRF51 has its own PWM driver variant in its periph driver folder
|
|
|
|
ifneq (,$(filter periph_pwm,$(USEMODULE)))
|
|
|
|
ifneq (,$(filter $(CPU_FAM),nrf52 nrf53 nrf9160))
|
|
|
|
SRC += pwm_nrfxx.c
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2021-09-05 21:47:38 +02:00
|
|
|
# Select the specific implementation for `periph_spi`
|
|
|
|
ifneq (,$(filter periph_spi,$(USEMODULE)))
|
2023-07-05 15:35:33 +02:00
|
|
|
ifneq (,$(filter $(CPU_FAM),nrf52 nrf53 nrf9160))
|
2021-09-05 21:47:38 +02:00
|
|
|
SRC += spi_nrf52_nrf9160.c
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2017-03-22 15:20:14 +01:00
|
|
|
include $(RIOTMAKE)/periph.mk
|