1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 00:29:46 +01:00

pkg: don't align nrf53 features on nrf51/nrf52

Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
This commit is contained in:
Dylan Laduranty 2023-07-13 13:22:28 +02:00
parent b050ad3631
commit 883d138e1c
5 changed files with 6 additions and 5 deletions

View File

@ -8,7 +8,7 @@ INCLUDES += -I$(RIOTPKG)/mynewt-core/include \
DIRS += $(RIOTPKG)/mynewt-core/contrib \
#
ifneq (,$(filter nrf5%,$(CPU)))
ifneq (,$(filter nrf51 nrf52,$(CPU)))
# OS_CPUTIME is set to 32.767 Hz
CFLAGS += -DMYNEWT_VAL_OS_CPUTIME_FREQ=32768
else

View File

@ -3,7 +3,7 @@ MODULE = mynewt-core
# exclude submodule sources from *.c wildcard source selection
SRC := $(filter-out nrf5x_isr.c cputime.c,$(wildcard *.c))
ifneq (,$(filter nrf5%,$(CPU)))
ifneq (,$(filter nrf51 nrf52,$(CPU)))
SRC += nrf5x_isr.c
else
SRC += cputime.c

View File

@ -8,7 +8,7 @@ SRC := \
os_cputime_pwr2.c \
#
ifneq (,$(filter nrf5%,$(CPU)))
ifneq (,$(filter nrf51 nrf52,$(CPU)))
SRC += os_cputime.c
endif

View File

@ -53,7 +53,7 @@ endif
# nimble controller dependencies
ifneq (,$(filter nimble_controller,$(USEMODULE)))
ifneq (,$(filter nrf5%,$(CPU_FAM)))
ifneq (,$(filter nrf51 nrf52,$(CPU_FAM)))
USEMODULE += nimble_drivers_nrf5x
endif
endif

View File

@ -19,7 +19,8 @@ endif
ifneq (,$(filter uwb-core_dpl,$(USEMODULE)))
USEPKG += mynewt-core
USEMODULE += mynewt-core_os
ifneq (,$(filter nrf5%,$(CPU)))
# don't pull nrf53 into the list
ifneq (,$(filter nrf51 nrf52,$(CPU)))
USEMODULE += mynewt-core_nrf5x_hal
endif
endif