2020-06-23 00:29:29 +02:00
|
|
|
USEMODULE += nrf52_vectors
|
|
|
|
|
2021-09-29 10:16:31 +02:00
|
|
|
ifneq (,$(filter nrf52811xxaa nrf52820xxaa nrf52833xxaa nrf52840xxaa,$(CPU_MODEL)))
|
|
|
|
# include dependencies for 802.15.4 radio
|
|
|
|
include $(RIOTCPU)/nrf52/Makefile.nrf802154.dep
|
|
|
|
else
|
|
|
|
# include dependencies for BLE
|
|
|
|
include $(RIOTCPU)/nrf52/Makefile.nimble.dep
|
|
|
|
endif
|
|
|
|
|
2019-03-04 13:18:47 +01:00
|
|
|
ifneq (,$(filter nrf802154,$(USEMODULE)))
|
|
|
|
FEATURES_REQUIRED += periph_timer
|
|
|
|
FEATURES_REQUIRED += radio_nrf802154
|
|
|
|
USEMODULE += luid
|
2021-07-08 18:43:54 +02:00
|
|
|
ifneq (,$(filter netdev,$(USEMODULE)))
|
2020-10-01 17:27:38 +02:00
|
|
|
USEMODULE += netdev_ieee802154_submac
|
|
|
|
endif
|
2019-03-04 13:18:47 +01:00
|
|
|
endif
|
2019-12-07 16:53:23 +01:00
|
|
|
|
2020-05-18 19:15:35 +02:00
|
|
|
# The nrf52832 requires gpio IRQ with SPI to work around errata 58
|
|
|
|
ifneq (,$(filter nrf52832xxaa,$(CPU_MODEL)))
|
|
|
|
ifneq (,$(filter periph_spi,$(USEMODULE)))
|
|
|
|
FEATURES_REQUIRED += periph_gpio_irq
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2021-02-25 14:26:18 +01:00
|
|
|
ifneq (,$(filter periph_uart_nonblocking,$(USEMODULE)))
|
|
|
|
USEMODULE += tsrb
|
|
|
|
endif
|
|
|
|
|
2021-02-13 23:37:02 +01:00
|
|
|
ifneq (,$(filter saul_nrf_vddh,$(USEMODULE)))
|
|
|
|
FEATURES_REQUIRED += periph_adc
|
|
|
|
endif
|
|
|
|
|
2022-01-18 15:08:46 +01:00
|
|
|
ifneq (,$(filter periph_spi,$(USEMODULE)))
|
|
|
|
USEMODULE += periph_spi_gpio_mode
|
|
|
|
endif
|
|
|
|
|
2023-08-29 18:54:57 +02:00
|
|
|
include $(RIOTCPU)/nrf52/periph/Makefile.dep
|
2019-12-07 16:53:23 +01:00
|
|
|
include $(RIOTCPU)/nrf5x_common/Makefile.dep
|
2020-03-27 02:30:11 +01:00
|
|
|
include $(RIOTCPU)/cortexm_common/Makefile.dep
|