mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
2de4b3011b
Rational: the periph_common module is required by (most) other periph drivers and also during startup of the CPU/MCU to run periph_init. The latter is only required if other periph drivers are used, hence periph_common should be a depency of periph_* modules and *not* of the CPU/MCU. This PR fixes that by making periph_common a depency of periph_* and removing the explicit include in the CPU/MCU implementation.
13 lines
369 B
Makefile
13 lines
369 B
Makefile
# export the CPU family so we can differentiate between them in the code
|
|
FAM = $(shell echo $(CPU_FAM) | tr 'a-z-' 'A-Z_')
|
|
export CFLAGS += -DCPU_FAM_$(FAM)
|
|
|
|
# include nrf5x common periph drivers
|
|
USEMODULE += nrf5x_common_periph
|
|
|
|
# link common cpu code
|
|
USEMODULE += cpu_common
|
|
|
|
# export the common include directory
|
|
export INCLUDES += -I$(RIOTCPU)/nrf5x_common/include
|