diff --git a/stm32cube/CMakeLists.txt b/stm32cube/CMakeLists.txt index deee61d5b2d43678d3b8304df23b229f2e97c763..93f3bf1a85945f3832ae8662e31c31c75e27c374 100644 --- a/stm32cube/CMakeLists.txt +++ b/stm32cube/CMakeLists.txt @@ -37,6 +37,7 @@ set(stm_socs stm32l5x stm32mp1x stm32wbx + stm32wlx ) if(CONFIG_CPU_CORTEX_M4) diff --git a/stm32cube/stm32wlxx/CMakeLists.txt b/stm32cube/stm32wlxx/CMakeLists.txt new file mode 100644 index 0000000000000000000000000000000000000000..1492ec79fdc96fc8f1fda0f0d0954c08e0d749a5 --- /dev/null +++ b/stm32cube/stm32wlxx/CMakeLists.txt @@ -0,0 +1,72 @@ +# Copyright (c) 2020 STMicroelectronics +# +# SPDX-License-Identifier: Apache-2.0 + +zephyr_library_sources(soc/system_stm32wlxx.c) +zephyr_library_sources(drivers/src/stm32wlxx_hal.c) +zephyr_library_sources(drivers/src/stm32wlxx_hal_rcc.c) +zephyr_library_sources(drivers/src/stm32wlxx_hal_rcc_ex.c) +zephyr_library_sources_ifdef(CONFIG_USE_STM32_HAL_ADC drivers/src/stm32wlxx_hal_adc.c) +zephyr_library_sources_ifdef(CONFIG_USE_STM32_HAL_ADC_EX drivers/src/stm32wlxx_hal_adc_ex.c) +zephyr_library_sources_ifdef(CONFIG_USE_STM32_HAL_COMP drivers/src/stm32wlxx_hal_comp.c) +zephyr_library_sources_ifdef(CONFIG_USE_STM32_HAL_CORTEX drivers/src/stm32wlxx_hal_cortex.c) +zephyr_library_sources_ifdef(CONFIG_USE_STM32_HAL_CRC drivers/src/stm32wlxx_hal_crc.c) +zephyr_library_sources_ifdef(CONFIG_USE_STM32_HAL_CRC_EX drivers/src/stm32wlxx_hal_crc_ex.c) +zephyr_library_sources_ifdef(CONFIG_USE_STM32_HAL_CRYP drivers/src/stm32wlxx_hal_cryp.c) +zephyr_library_sources_ifdef(CONFIG_USE_STM32_HAL_CRYP_EX drivers/src/stm32wlxx_hal_cryp_ex.c) +zephyr_library_sources_ifdef(CONFIG_USE_STM32_HAL_DAC drivers/src/stm32wlxx_hal_dac.c) +zephyr_library_sources_ifdef(CONFIG_USE_STM32_HAL_DAC_EX drivers/src/stm32wlxx_hal_dac_ex.c) +zephyr_library_sources_ifdef(CONFIG_USE_STM32_HAL_DMA drivers/src/stm32wlxx_hal_dma.c) +zephyr_library_sources_ifdef(CONFIG_USE_STM32_HAL_DMA_EX drivers/src/stm32wlxx_hal_dma_ex.c) +zephyr_library_sources_ifdef(CONFIG_USE_STM32_HAL_EXTI drivers/src/stm32wlxx_hal_exti.c) +zephyr_library_sources_ifdef(CONFIG_USE_STM32_HAL_FLASH drivers/src/stm32wlxx_hal_flash.c) +zephyr_library_sources_ifdef(CONFIG_USE_STM32_HAL_FLASH_EX drivers/src/stm32wlxx_hal_flash_ex.c) +zephyr_library_sources_ifdef(CONFIG_USE_STM32_HAL_GPIO drivers/src/stm32wlxx_hal_gpio.c) +zephyr_library_sources_ifdef(CONFIG_USE_STM32_HAL_GTZC drivers/src/stm32wlxx_hal_gtzc.c) +zephyr_library_sources_ifdef(CONFIG_USE_STM32_HAL_HSEM drivers/src/stm32wlxx_hal_hsem.c) +zephyr_library_sources_ifdef(CONFIG_USE_STM32_HAL_I2C drivers/src/stm32wlxx_hal_i2c.c) +zephyr_library_sources_ifdef(CONFIG_USE_STM32_HAL_I2C_EX drivers/src/stm32wlxx_hal_i2c_ex.c) +zephyr_library_sources_ifdef(CONFIG_USE_STM32_HAL_I2S drivers/src/stm32wlxx_hal_i2s.c) +zephyr_library_sources_ifdef(CONFIG_USE_STM32_HAL_IPCC drivers/src/stm32wlxx_hal_ipcc.c) +zephyr_library_sources_ifdef(CONFIG_USE_STM32_HAL_IRDA drivers/src/stm32wlxx_hal_irda.c) +zephyr_library_sources_ifdef(CONFIG_USE_STM32_HAL_IWDG drivers/src/stm32wlxx_hal_iwdg.c) +zephyr_library_sources_ifdef(CONFIG_USE_STM32_HAL_LPTIM drivers/src/stm32wlxx_hal_lptim.c) +zephyr_library_sources_ifdef(CONFIG_USE_STM32_HAL_PKA drivers/src/stm32wlxx_hal_pka.c) +zephyr_library_sources_ifdef(CONFIG_USE_STM32_HAL_PWR drivers/src/stm32wlxx_hal_pwr.c) +zephyr_library_sources_ifdef(CONFIG_USE_STM32_HAL_PWR_EX drivers/src/stm32wlxx_hal_pwr_ex.c) +zephyr_library_sources_ifdef(CONFIG_USE_STM32_HAL_RNG drivers/src/stm32wlxx_hal_rng.c) +zephyr_library_sources_ifdef(CONFIG_USE_STM32_HAL_RNG_EX drivers/src/stm32wlxx_hal_rng_ex.c) +zephyr_library_sources_ifdef(CONFIG_USE_STM32_HAL_RTC drivers/src/stm32wlxx_hal_rtc.c) +zephyr_library_sources_ifdef(CONFIG_USE_STM32_HAL_RTC_EX drivers/src/stm32wlxx_hal_rtc_ex.c) +zephyr_library_sources_ifdef(CONFIG_USE_STM32_HAL_SMARTCARD drivers/src/stm32wlxx_hal_smartcard.c) +zephyr_library_sources_ifdef(CONFIG_USE_STM32_HAL_SMARTCARD_EX drivers/src/stm32wlxx_hal_smartcard_ex.c) +zephyr_library_sources_ifdef(CONFIG_USE_STM32_HAL_SMBUS drivers/src/stm32wlxx_hal_smbus.c) +zephyr_library_sources_ifdef(CONFIG_USE_STM32_HAL_SPI drivers/src/stm32wlxx_hal_spi.c) +zephyr_library_sources_ifdef(CONFIG_USE_STM32_HAL_SPI_EX drivers/src/stm32wlxx_hal_spi_ex.c) +zephyr_library_sources_ifdef(CONFIG_USE_STM32_HAL_SUBGHZ drivers/src/stm32wlxx_hal_subghz.c) +zephyr_library_sources_ifdef(CONFIG_USE_STM32_HAL_TIM drivers/src/stm32wlxx_hal_tim.c) +zephyr_library_sources_ifdef(CONFIG_USE_STM32_HAL_TIM_EX drivers/src/stm32wlxx_hal_tim_ex.c) +zephyr_library_sources_ifdef(CONFIG_USE_STM32_HAL_UART drivers/src/stm32wlxx_hal_uart.c) +zephyr_library_sources_ifdef(CONFIG_USE_STM32_HAL_UART_EX drivers/src/stm32wlxx_hal_uart_ex.c) +zephyr_library_sources_ifdef(CONFIG_USE_STM32_HAL_USART drivers/src/stm32wlxx_hal_usart.c) +zephyr_library_sources_ifdef(CONFIG_USE_STM32_HAL_USART_EX drivers/src/stm32wlxx_hal_usart_ex.c) +zephyr_library_sources_ifdef(CONFIG_USE_STM32_HAL_WWDG drivers/src/stm32wlxx_hal_wwdg.c) +zephyr_library_sources_ifdef(CONFIG_USE_STM32_LL_ADC drivers/src/stm32wlxx_ll_adc.c) +zephyr_library_sources_ifdef(CONFIG_USE_STM32_LL_COMP drivers/src/stm32wlxx_ll_comp.c) +zephyr_library_sources_ifdef(CONFIG_USE_STM32_LL_CRC drivers/src/stm32wlxx_ll_crc.c) +zephyr_library_sources_ifdef(CONFIG_USE_STM32_LL_DAC drivers/src/stm32wlxx_ll_dac.c) +zephyr_library_sources_ifdef(CONFIG_USE_STM32_LL_DMA drivers/src/stm32wlxx_ll_dma.c) +zephyr_library_sources_ifdef(CONFIG_USE_STM32_LL_EXTI drivers/src/stm32wlxx_ll_exti.c) +zephyr_library_sources_ifdef(CONFIG_USE_STM32_LL_GPIO drivers/src/stm32wlxx_ll_gpio.c) +zephyr_library_sources_ifdef(CONFIG_USE_STM32_LL_I2C drivers/src/stm32wlxx_ll_i2c.c) +zephyr_library_sources_ifdef(CONFIG_USE_STM32_LL_LPTIM drivers/src/stm32wlxx_ll_lptim.c) +zephyr_library_sources_ifdef(CONFIG_USE_STM32_LL_LPUART drivers/src/stm32wlxx_ll_lpuart.c) +zephyr_library_sources_ifdef(CONFIG_USE_STM32_LL_PKA drivers/src/stm32wlxx_ll_pka.c) +zephyr_library_sources_ifdef(CONFIG_USE_STM32_LL_PWR drivers/src/stm32wlxx_ll_pwr.c) +zephyr_library_sources_ifdef(CONFIG_USE_STM32_LL_RCC drivers/src/stm32wlxx_ll_rcc.c) +zephyr_library_sources_ifdef(CONFIG_USE_STM32_LL_RNG drivers/src/stm32wlxx_ll_rng.c) +zephyr_library_sources_ifdef(CONFIG_USE_STM32_LL_RTC drivers/src/stm32wlxx_ll_rtc.c) +zephyr_library_sources_ifdef(CONFIG_USE_STM32_LL_SPI drivers/src/stm32wlxx_ll_spi.c) +zephyr_library_sources_ifdef(CONFIG_USE_STM32_LL_TIM drivers/src/stm32wlxx_ll_tim.c) +zephyr_library_sources_ifdef(CONFIG_USE_STM32_LL_USART drivers/src/stm32wlxx_ll_usart.c) +zephyr_library_sources_ifdef(CONFIG_USE_STM32_LL_UTILS drivers/src/stm32wlxx_ll_utils.c) diff --git a/stm32cube/stm32wlxx/README b/stm32cube/stm32wlxx/README new file mode 100644 index 0000000000000000000000000000000000000000..6c90be5da92e5df7d229d09cb027a3ff1de66e26 --- /dev/null +++ b/stm32cube/stm32wlxx/README @@ -0,0 +1,43 @@ +STM32CubeWB +########### + +Origin: + ST Microelectronics + http://www.st.com/en/embedded-software/stm32cubewb.html + +Status: + version v1.0.0 + +Purpose: + ST Microelectronics official MCU package for STM32WL series. + +Description: + This package is an extract of official STM32CubeWL package written by ST Microelectronics. + It is composed of STM32Cube hardware abstraction layer (HAL) and low layer (LL) plus a set + of CMSIS headers files, one for each SoC in STM32WL series. + +Dependencies: + None. + +URL: + https://github.com/STMicroelectronics/STM32CubeWL + +Commit: + 747d4e27df07dcfc995b54f8af8a0bee38dfef8d + +Maintained-by: + External + +License: + BSD-3-Clause + +License Link: + https://opensource.org/licenses/BSD-3-Clause + +Patch List: + + *Changes from official delivery: + -dos2unix applied + -trailing white spaces removed + + See release_note.html from STM32Cube diff --git a/stm32cube/stm32wlxx/drivers/include/Legacy/stm32_hal_legacy.h b/stm32cube/stm32wlxx/drivers/include/Legacy/stm32_hal_legacy.h new file mode 100644 index 0000000000000000000000000000000000000000..4455f41adf3a9fe43298584d0ade8e8e1a94480b --- /dev/null +++ b/stm32cube/stm32wlxx/drivers/include/Legacy/stm32_hal_legacy.h @@ -0,0 +1,3782 @@ +/** + ****************************************************************************** + * @file stm32_hal_legacy.h + * @author MCD Application Team + * @brief This file contains aliases definition for the STM32Cube HAL constants + * macros and functions maintained for legacy purpose. + ****************************************************************************** + * @attention + * + *
Copyright © 2020 STMicroelectronics
+
+This software component is licensed by ST under BSD-3-Clause license, the “License”; You may not use this component except in compliance with the License. You may obtain a copy of the License at:
+https://opensource.org/licenses/BSD-3-Clause
+The STM32Cube HAL and LL, an STM32 abstraction layer embedded software, ensure maximized portability across STM32 portfolio.
+The Portable APIs layer provides a generic, multi instanced and simple set of APIs to interact with the upper layer (application, libraries and stacks). It is composed of native and extended APIs set. It is directly built around a generic architecture and allows the build-upon layers, like the middleware layer, to implement its functions without knowing in-depth the used STM32 device. This improves the library code reusability and guarantees an easy portability on other devices and STM32 families.
+The Low Layer (LL) drivers are part of the STM32Cube firmware HAL that provide basic set of optimized and one shot services. The Low layer drivers, contrary to the HAL ones are not Fully Portable across the STM32 families; the availability of some functions depend on the physical availability of the relative features on the product. The Low Layer (LL) drivers are designed to offer the following features:
+First Official Release
+First official release of LL / HAL Drivers for STM32WLxx series.
+None
+Supported Devices:
+Not applicable
+None
+
+