Skip to content

Commit

Permalink
fixup! pkg/stm32cube: add package for STM32Cube
Browse files Browse the repository at this point in the history
  • Loading branch information
aabadie committed Jun 1, 2020
1 parent ee5e7c8 commit cf91f19
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pkg/stm32cmsis/Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ CPU_FAM_UPPERCASE = $(call uppercase,$(CPU_FAM))
# which are only used for STM32 system includes and not of interest for RIOT.
CFLAGS += -D__SYSTEM_STM32$(CPU_FAM_UPPERCASE)XX_H

STM32CUBE_CACHE_DIR = $(RIOTBASE)/pkg/stm32cmsis/cache/$(CPU_FAM)
ifeq (1,$(RIOT_CI_BUILD))
STM32CMSIS_INCLUDE_DIR = $(PKGDIRBASE)/stm32cmsis/Include
else
STM32CMSIS_INCLUDE_DIR = $(RIOTBASE)/pkg/stm32cmsis/cache/$(CPU_FAM)/Include
endif

INCLUDES += -I$(STM32CUBE_CACHE_DIR)/stm32cmsis/Include
INCLUDES += -I$(STM32CMSIS_INCLUDE_DIR)

0 comments on commit cf91f19

Please sign in to comment.