Newer
Older
mbed-os / targets / TARGET_STM / TARGET_STM32WB / STM32Cube_FW / CMakeLists.txt
@jeromecoutant jeromecoutant on 5 May 2021 3 KB STM32WB : TARGET_STM32WB_V1.11.1
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

add_library(mbed-stm32wbcube-fw INTERFACE)

target_sources(mbed-stm32wbcube-fw
    INTERFACE
        STM32WBxx_HAL_Driver/stm32wbxx_hal.c
        STM32WBxx_HAL_Driver/stm32wbxx_hal_adc.c
        STM32WBxx_HAL_Driver/stm32wbxx_hal_adc_ex.c
        STM32WBxx_HAL_Driver/stm32wbxx_hal_comp.c
        STM32WBxx_HAL_Driver/stm32wbxx_hal_cortex.c
        STM32WBxx_HAL_Driver/stm32wbxx_hal_crc.c
        STM32WBxx_HAL_Driver/stm32wbxx_hal_crc_ex.c
        STM32WBxx_HAL_Driver/stm32wbxx_hal_cryp.c
        STM32WBxx_HAL_Driver/stm32wbxx_hal_cryp_ex.c
        STM32WBxx_HAL_Driver/stm32wbxx_hal_dma.c
        STM32WBxx_HAL_Driver/stm32wbxx_hal_dma_ex.c
        STM32WBxx_HAL_Driver/stm32wbxx_hal_exti.c
        STM32WBxx_HAL_Driver/stm32wbxx_hal_flash.c
        STM32WBxx_HAL_Driver/stm32wbxx_hal_flash_ex.c
        STM32WBxx_HAL_Driver/stm32wbxx_hal_gpio.c
        STM32WBxx_HAL_Driver/stm32wbxx_hal_hsem.c
        STM32WBxx_HAL_Driver/stm32wbxx_hal_i2c.c
        STM32WBxx_HAL_Driver/stm32wbxx_hal_i2c_ex.c
        STM32WBxx_HAL_Driver/stm32wbxx_hal_ipcc.c
        STM32WBxx_HAL_Driver/stm32wbxx_hal_irda.c
        STM32WBxx_HAL_Driver/stm32wbxx_hal_iwdg.c
        STM32WBxx_HAL_Driver/stm32wbxx_hal_lcd.c
        STM32WBxx_HAL_Driver/stm32wbxx_hal_lptim.c
        STM32WBxx_HAL_Driver/stm32wbxx_hal_pcd.c
        STM32WBxx_HAL_Driver/stm32wbxx_hal_pcd_ex.c
        STM32WBxx_HAL_Driver/stm32wbxx_hal_pka.c
        STM32WBxx_HAL_Driver/stm32wbxx_hal_pwr.c
        STM32WBxx_HAL_Driver/stm32wbxx_hal_pwr_ex.c
        STM32WBxx_HAL_Driver/stm32wbxx_hal_qspi.c
        STM32WBxx_HAL_Driver/stm32wbxx_hal_rcc.c
        STM32WBxx_HAL_Driver/stm32wbxx_hal_rcc_ex.c
        STM32WBxx_HAL_Driver/stm32wbxx_hal_rng.c
        STM32WBxx_HAL_Driver/stm32wbxx_hal_rtc.c
        STM32WBxx_HAL_Driver/stm32wbxx_hal_rtc_ex.c
        STM32WBxx_HAL_Driver/stm32wbxx_hal_sai.c
        STM32WBxx_HAL_Driver/stm32wbxx_hal_sai_ex.c
        STM32WBxx_HAL_Driver/stm32wbxx_hal_smartcard.c
        STM32WBxx_HAL_Driver/stm32wbxx_hal_smartcard_ex.c
        STM32WBxx_HAL_Driver/stm32wbxx_hal_smbus.c
        STM32WBxx_HAL_Driver/stm32wbxx_hal_spi.c
        STM32WBxx_HAL_Driver/stm32wbxx_hal_spi_ex.c
        STM32WBxx_HAL_Driver/stm32wbxx_hal_tim.c
        STM32WBxx_HAL_Driver/stm32wbxx_hal_tim_ex.c
        STM32WBxx_HAL_Driver/stm32wbxx_hal_tsc.c
        STM32WBxx_HAL_Driver/stm32wbxx_hal_uart.c
        STM32WBxx_HAL_Driver/stm32wbxx_hal_uart_ex.c
        STM32WBxx_HAL_Driver/stm32wbxx_hal_usart.c
        STM32WBxx_HAL_Driver/stm32wbxx_hal_usart_ex.c
        STM32WBxx_HAL_Driver/stm32wbxx_hal_wwdg.c
        STM32WBxx_HAL_Driver/stm32wbxx_ll_adc.c
        STM32WBxx_HAL_Driver/stm32wbxx_ll_comp.c
        STM32WBxx_HAL_Driver/stm32wbxx_ll_crc.c
        STM32WBxx_HAL_Driver/stm32wbxx_ll_crs.c
        STM32WBxx_HAL_Driver/stm32wbxx_ll_dma.c
        STM32WBxx_HAL_Driver/stm32wbxx_ll_exti.c
        STM32WBxx_HAL_Driver/stm32wbxx_ll_gpio.c
        STM32WBxx_HAL_Driver/stm32wbxx_ll_i2c.c
        STM32WBxx_HAL_Driver/stm32wbxx_ll_lptim.c
        STM32WBxx_HAL_Driver/stm32wbxx_ll_lpuart.c
        STM32WBxx_HAL_Driver/stm32wbxx_ll_pka.c
        STM32WBxx_HAL_Driver/stm32wbxx_ll_pwr.c
        STM32WBxx_HAL_Driver/stm32wbxx_ll_rcc.c
        STM32WBxx_HAL_Driver/stm32wbxx_ll_rng.c
        STM32WBxx_HAL_Driver/stm32wbxx_ll_rtc.c
        STM32WBxx_HAL_Driver/stm32wbxx_ll_spi.c
        STM32WBxx_HAL_Driver/stm32wbxx_ll_tim.c
        STM32WBxx_HAL_Driver/stm32wbxx_ll_usart.c
        STM32WBxx_HAL_Driver/stm32wbxx_ll_usb.c
        STM32WBxx_HAL_Driver/stm32wbxx_ll_utils.c
        system_stm32wbxx.c
        otp.c
        stm32_lpm_if.c
)

target_include_directories(mbed-stm32wbcube-fw
    INTERFACE
        .
        CMSIS
        STM32WBxx_HAL_Driver
        STM32WBxx_HAL_Driver/Legacy
)