Skip to content
Permalink
Browse files

ext/hal/st: Adapt stm32cube folder to stm32wb introduction

Following introduction of STM32Cube for STM32WB, update stm32cube
folder to enable build of STM32WB Cube package.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
  • Loading branch information...
erwango authored and galak committed Feb 25, 2019
1 parent 6fdd0c2 commit 9098215348fa21b09287ade286ec131b78714b85
Showing with 105 additions and 0 deletions.
  1. +1 −0 ext/hal/st/stm32cube/CMakeLists.txt
  2. +3 −0 ext/hal/st/stm32cube/Kconfig
  3. +101 −0 ext/hal/st/stm32cube/stm32wbxx/CMakeLists.txt
@@ -28,6 +28,7 @@ set(stm_socs
stm32l0x
stm32l4x
stm32mp1x
stm32wbx
)

if(CONFIG_STM32_CORE_CM4)
@@ -128,6 +128,9 @@ config USE_STM32_HAL_IPCC
config USE_STM32_HAL_I2S_EX
bool

config USE_STM32_HAL_IPCC
bool

config USE_STM32_HAL_IRDA
bool

@@ -0,0 +1,101 @@
# Copyright (c) 2019 Linaro Limited
#
# SPDX-License-Identifier: Apache-2.0

zephyr_sources(soc/system_stm32wbxx.c)
zephyr_sources(drivers/src/stm32wbxx_hal.c)
zephyr_sources(drivers/src/stm32wbxx_hal_rcc.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_ADC drivers/src/stm32wbxx_hal_adc.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_ADC_EX drivers/src/stm32wbxx_hal_adc_ex.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_CAN drivers/src/stm32wbxx_hal_can.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_COMP drivers/src/stm32wbxx_hal_comp.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_CORTEX drivers/src/stm32wbxx_hal_cortex.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_CRC drivers/src/stm32wbxx_hal_crc.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_CRC_EX drivers/src/stm32wbxx_hal_crc_ex.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_CRYPT drivers/src/stm32wbxx_hal_cryp.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_CRYPT_EX drivers/src/stm32wbxx_hal_cryp_ex.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_DAC drivers/src/stm32wbxx_hal_dac.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_DAC_EX drivers/src/stm32wbxx_hal_dac_ex.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_DCMI drivers/src/stm32wbxx_hal_dcmi.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_DFSDM drivers/src/stm32wbxx_hal_dfsdm.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_DFSDM_EX drivers/src/stm32wbxx_hal_dfsdm_ex.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_DMA drivers/src/stm32wbxx_hal_dma.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_DMA2D drivers/src/stm32wbxx_hal_dma2d.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_DMA_EX drivers/src/stm32wbxx_hal_dma_ex.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_DSI drivers/src/stm32wbxx_hal_dsi.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_FIREWALL drivers/src/stm32wbxx_hal_firewall.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_FLASH drivers/src/stm32wbxx_hal_flash.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_FLASH_EX drivers/src/stm32wbxx_hal_flash_ex.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_FLASH_RAMFUNC drivers/src/stm32wbxx_hal_flash_ramfunc.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_GFXMMU drivers/src/stm32wbxx_hal_gfxmmu.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_GPIO drivers/src/stm32wbxx_hal_gpio.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_HASH drivers/src/stm32wbxx_hal_hash.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_HASH_EX drivers/src/stm32wbxx_hal_hash_ex.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_HCD drivers/src/stm32wbxx_hal_hcd.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_I2C drivers/src/stm32wbxx_hal_i2c.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_I2C_EX drivers/src/stm32wbxx_hal_i2c_ex.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_IPCC drivers/src/stm32wbxx_hal_ipcc.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_IRDA drivers/src/stm32wbxx_hal_irda.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_IWDG drivers/src/stm32wbxx_hal_iwdg.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_LCD drivers/src/stm32wbxx_hal_lcd.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_LPTIM drivers/src/stm32wbxx_hal_lptim.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_LTDC drivers/src/stm32wbxx_hal_ltdc.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_LTDC_EX drivers/src/stm32wbxx_hal_ltdc_ex.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_NAND drivers/src/stm32wbxx_hal_nand.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_NOR drivers/src/stm32wbxx_hal_nor.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_OPAMP drivers/src/stm32wbxx_hal_opamp.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_OPAMP_EX drivers/src/stm32wbxx_hal_opamp_ex.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_OSPI drivers/src/stm32wbxx_hal_ospi.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_PCD drivers/src/stm32wbxx_hal_pcd.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_PCD_EX drivers/src/stm32wbxx_hal_pcd_ex.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_PWR drivers/src/stm32wbxx_hal_pwr.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_PWR_EX drivers/src/stm32wbxx_hal_pwr_ex.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_QSPI drivers/src/stm32wbxx_hal_qspi.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_RCC_EX drivers/src/stm32wbxx_hal_rcc_ex.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_RNG drivers/src/stm32wbxx_hal_rng.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_RTC drivers/src/stm32wbxx_hal_rtc.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_RTC_EX drivers/src/stm32wbxx_hal_rtc_ex.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_SAI drivers/src/stm32wbxx_hal_sai.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_SAI_EX drivers/src/stm32wbxx_hal_sai_ex.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_SD drivers/src/stm32wbxx_hal_sd.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_SD_EX drivers/src/stm32wbxx_hal_sd_ex.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_SMARTCARD drivers/src/stm32wbxx_hal_smartcard.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_SMARTCARD_EX drivers/src/stm32wbxx_hal_smartcard_ex.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_SMBUS drivers/src/stm32wbxx_hal_smbus.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_SPI drivers/src/stm32wbxx_hal_spi.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_SPI_EX drivers/src/stm32wbxx_hal_spi_ex.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_SRAM drivers/src/stm32wbxx_hal_sram.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_SWPMI drivers/src/stm32wbxx_hal_swpmi.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_TIM drivers/src/stm32wbxx_hal_tim.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_TIM_EX drivers/src/stm32wbxx_hal_tim_ex.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_TSC drivers/src/stm32wbxx_hal_tsc.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_UART drivers/src/stm32wbxx_hal_uart.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_UART_EX drivers/src/stm32wbxx_hal_uart_ex.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_USART drivers/src/stm32wbxx_hal_usart.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_USART_EX drivers/src/stm32wbxx_hal_usart_ex.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_WWDG drivers/src/stm32wbxx_hal_wwdg.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_LL_ADC drivers/src/stm32wbxx_ll_adc.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_LL_COMP drivers/src/stm32wbxx_ll_comp.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_LL_CRC drivers/src/stm32wbxx_ll_crc.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_LL_CRS drivers/src/stm32wbxx_ll_crs.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_LL_DAC drivers/src/stm32wbxx_ll_dac.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_LL_DMA drivers/src/stm32wbxx_ll_dma.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_LL_DMA2D drivers/src/stm32wbxx_ll_dma2d.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_LL_EXTI drivers/src/stm32wbxx_ll_exti.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_LL_FMC drivers/src/stm32wbxx_ll_fmc.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_LL_GPIO drivers/src/stm32wbxx_ll_gpio.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_LL_I2C drivers/src/stm32wbxx_ll_i2c.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_LL_LPTIM drivers/src/stm32wbxx_ll_lptim.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_LL_LPUART drivers/src/stm32wbxx_ll_lpuart.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_LL_OPAMP drivers/src/stm32wbxx_ll_opamp.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_LL_PWR drivers/src/stm32wbxx_ll_pwr.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_LL_RCC drivers/src/stm32wbxx_ll_rcc.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_LL_RNG drivers/src/stm32wbxx_ll_rng.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_LL_RTC drivers/src/stm32wbxx_ll_rtc.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_LL_SDMMC drivers/src/stm32wbxx_ll_sdmmc.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_LL_SPI drivers/src/stm32wbxx_ll_spi.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_LL_SWPMI drivers/src/stm32wbxx_ll_swpmi.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_LL_TIM drivers/src/stm32wbxx_ll_tim.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_LL_USART drivers/src/stm32wbxx_ll_usart.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_LL_USB drivers/src/stm32wbxx_ll_usb.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_LL_UTILS drivers/src/stm32wbxx_ll_utils.c)

0 comments on commit 9098215

Please sign in to comment.
You can’t perform that action at this time.