stm32cube: Add Zephyr build system files for stm32f1 series
Following previous commits, adding build system files with minimum files inclusion to initiate stm32cube based porting in zephyr Change-Id: I02be8161a8c63cf05cc6b2de2f3fb0c0a4ef490f Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
parent
5125475d7c
commit
deaa468432
8
ext/hal/st/stm32cube/Kbuild
Normal file
8
ext/hal/st/stm32cube/Kbuild
Normal file
|
@ -0,0 +1,8 @@
|
|||
ifdef CONFIG_HAS_STM32CUBE
|
||||
|
||||
ifdef CONFIG_SOC_SERIES_STM32F1X
|
||||
obj-y += stm32f1xx/drivers/src/stm32f1xx_hal.o
|
||||
obj-y += stm32f1xx/soc/system_stm32f1xx.o
|
||||
endif
|
||||
|
||||
endif
|
20
ext/hal/st/stm32cube/Kconfig
Normal file
20
ext/hal/st/stm32cube/Kconfig
Normal file
|
@ -0,0 +1,20 @@
|
|||
# Kconfig - STM32CUBE HAL config
|
||||
|
||||
# Copyright (c) 2016 Linaro Limited.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License
|
||||
|
||||
config HAS_STM32CUBE
|
||||
bool
|
||||
select HAS_CMSIS
|
||||
depends on SOC_FAMILY_STM32
|
9
ext/hal/st/stm32cube/Makefile
Normal file
9
ext/hal/st/stm32cube/Makefile
Normal file
|
@ -0,0 +1,9 @@
|
|||
ifdef CONFIG_HAS_STM32CUBE
|
||||
|
||||
ifdef CONFIG_SOC_SERIES_STM32F1X
|
||||
ZEPHYRINCLUDE += -I$(srctree)/ext/hal/st/stm32cube/stm32f1xx/soc/
|
||||
ZEPHYRINCLUDE += -I$(srctree)/ext/hal/st/stm32cube/stm32f1xx/drivers/include/
|
||||
ZEPHYRINCLUDE += -I$(srctree)/ext/hal/st/stm32cube/stm32f1xx/drivers/include/Legacy/
|
||||
endif
|
||||
|
||||
endif
|
2
ext/hal/st/stm32cube/stm32f1xx/README
Normal file
2
ext/hal/st/stm32cube/stm32f1xx/README
Normal file
|
@ -0,0 +1,2 @@
|
|||
The current version supported in Zephyr for STM32F1 Cube is V1.4.0
|
||||
|
Loading…
Reference in a new issue