1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2026-01-01 01:41:18 +01:00

cpu/stm32: use CMSIS headers from the stm32cmsis package

This commit is contained in:
Alexandre Abadie 2020-05-26 21:42:43 +02:00
parent 1f0a3a6bae
commit f21440b176
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405
3 changed files with 21 additions and 12 deletions

View File

@ -16,4 +16,10 @@ ifneq (,$(filter periph_uart_nonblocking,$(USEMODULE)))
USEMODULE += tsrb
endif
ifneq (STM32F030x4, $(CPU_LINE))
# Retrieve vendor CMSIS headers from ST cmsis_device_<family> repositories on
# GitHub, https://github.com/STMicroelectronics
USEPKG += stm32cmsis
endif
include $(RIOTCPU)/cortexm_common/Makefile.dep

View File

@ -23,28 +23,30 @@
#include "cpu_conf_common.h"
#if CPU_FAM_STM32F0
#include "vendor/stm32f0xx.h"
#if defined(CPU_LINE_STM32F030x4)
#include "vendor/stm32f030x4.h"
#elif CPU_FAM_STM32F0
#include "stm32f0xx.h"
#elif CPU_FAM_STM32F1
#include "vendor/stm32f1xx.h"
#include "stm32f1xx.h"
#elif CPU_FAM_STM32F2
#include "vendor/stm32f2xx.h"
#include "stm32f2xx.h"
#elif CPU_FAM_STM32F3
#include "vendor/stm32f3xx.h"
#include "stm32f3xx.h"
#elif CPU_FAM_STM32F4
#include "vendor/stm32f4xx.h"
#include "stm32f4xx.h"
#elif CPU_FAM_STM32F7
#include "vendor/stm32f7xx.h"
#include "stm32f7xx.h"
#elif CPU_FAM_STM32G4
#include "vendor/stm32g4xx.h"
#include "stm32g4xx.h"
#elif CPU_FAM_STM32L0
#include "vendor/stm32l0xx.h"
#include "stm32l0xx.h"
#elif CPU_FAM_STM32L1
#include "vendor/stm32l1xx.h"
#include "stm32l1xx.h"
#elif CPU_FAM_STM32L4
#include "vendor/stm32l4xx.h"
#include "stm32l4xx.h"
#elif CPU_FAM_STM32WB
#include "vendor/stm32wbxx.h"
#include "stm32wbxx.h"
#else
#error Not supported CPU family
#endif

1
cpu/stm32/include/vendor/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
cmsis/*