1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/pkg/cmsis/Makefile.include

20 lines
632 B
Makefile

INCLUDES += -I$(PKGDIRBASE)/cmsis/CMSIS/Core/Include
ifneq (,$(filter cmsis-dsp,$(USEMODULE)))
INCLUDES += -I$(PKGDIRBASE)/cmsis/CMSIS/DSP/Include
INCLUDES += -I$(PKGDIRBASE)/cmsis/CMSIS/DSP/PrivateInclude
CFLAGS += -DARM_CPU="cortex-m4"
endif
ifneq (,$(filter cmsis-nn,$(USEMODULE)))
INCLUDES += -I$(PKGDIRBASE)/cmsis/CMSIS/DSP/Include
INCLUDES += -I$(PKGDIRBASE)/cmsis/CMSIS/NN/Include
# Required for some basic math functions
CFLAGS += -Wno-sign-compare
endif
# cmsis* modules are not concrete modules, so declare them as pseudomodules
PSEUDOMODULES += cmsis
PSEUDOMODULES += cmsis-dsp
PSEUDOMODULES += cmsis-nn