<commit_before># Makefile - STM32Cube SDK
#
# Copyright (c) 2016 Linaro Limited
#
# SPDX-License-Identifier: Apache-2.0

#add_library(STM32CUBE INTERFACE)
string(TOUPPER ${CONFIG_SOC} _STM32CUBE_CPU)
string(REPLACE "X" "x" STM32CUBE_CPU ${_STM32CUBE_CPU})

# STM32Cub uses the CPU name to expose SOC-specific attributes of a specific
# peripheral.
# It also requires USE_HAL_DRIVER to be define in order to benefit from
# STM32Cube HAL and LL APIs
zephyr_compile_definitions(
  -D${STM32CUBE_CPU}
  -DUSE_HAL_DRIVER
  -DUSE_FULL_LL_DRIVER
  )

if(CONFIG_SOC_SERIES_STM32F0X)
  zephyr_include_directories(
	stm32f0xx/soc
	stm32f0xx/drivers/include
	stm32f0xx/drivers/include/Legacy
	)

  zephyr_sources(stm32f0xx/drivers/src/stm32f0xx_hal.c)
  zephyr_sources(stm32f0xx/drivers/src/stm32f0xx_hal_rcc.c)
  zephyr_sources_ifdef(CONFIG_CLOCK_CONTROL_STM32_CUBE stm32f0xx/drivers/src/stm32f0xx_ll_utils.c)
  zephyr_sources_ifdef(CONFIG_I2C_STM32_V2 stm32f0xx/drivers/src/stm32f0xx_ll_i2c.c)
  zephyr_sources_ifdef(CONFIG_I2C_STM32_V2 stm32f0xx/drivers/src/stm32f0xx_ll_rcc.c)
  zephyr_sources(stm32f0xx/soc/system_stm32f0xx.c)
endif()

if(CONFIG_SOC_SERIES_STM32F1X)
  zephyr_include_directories(
	stm32f1xx/soc
	stm32f1xx/drivers/include
	stm32f1xx/drivers/include/Legacy
	)

  zephyr_sources(stm32f1xx/drivers/src/stm32f1xx_hal.c)<commit_msg>ext: hal: stm32cube: build LL SPI code for STM32F0<commit_after># Makefile - STM32Cube SDK
#
# Copyright (c) 2016 Linaro Limited
#
# SPDX-License-Identifier: Apache-2.0

#add_library(STM32CUBE INTERFACE)
string(TOUPPER ${CONFIG_SOC} _STM32CUBE_CPU)
string(REPLACE "X" "x" STM32CUBE_CPU ${_STM32CUBE_CPU})

# STM32Cub uses the CPU name to expose SOC-specific attributes of a specific
# peripheral.
# It also requires USE_HAL_DRIVER to be define in order to benefit from
# STM32Cube HAL and LL APIs
zephyr_compile_definitions(
  -D${STM32CUBE_CPU}
  -DUSE_HAL_DRIVER
  -DUSE_FULL_LL_DRIVER
  )

if(CONFIG_SOC_SERIES_STM32F0X)
  zephyr_include_directories(
	stm32f0xx/soc
	stm32f0xx/drivers/include
	stm32f0xx/drivers/include/Legacy
	)

  zephyr_sources(stm32f0xx/drivers/src/stm32f0xx_hal.c)
  zephyr_sources(stm32f0xx/drivers/src/stm32f0xx_hal_rcc.c)
  zephyr_sources_ifdef(CONFIG_CLOCK_CONTROL_STM32_CUBE stm32f0xx/drivers/src/stm32f0xx_ll_utils.c)
  zephyr_sources_ifdef(CONFIG_I2C_STM32_V2 stm32f0xx/drivers/src/stm32f0xx_ll_i2c.c)
  zephyr_sources_ifdef(CONFIG_I2C_STM32_V2 stm32f0xx/drivers/src/stm32f0xx_ll_rcc.c)
  zephyr_sources_ifdef(CONFIG_SPI_STM32 stm32f0xx/drivers/src/stm32f0xx_ll_spi.c)
  zephyr_sources(stm32f0xx/soc/system_stm32f0xx.c)
endif()

if(CONFIG_SOC_SERIES_STM32F1X)
  zephyr_include_directories(
	stm32f1xx/soc
	stm32f1xx/drivers/include
	stm32f1xx/drivers/include/Legacy
	)

  zephyr_sources(stm32f1xx/drivers/src/stm32f1xx_hal.c)
{'fraction_non_alphanumeric': 0.08193202146690519, 'fraction_numerical': 0.07549194991055456, 'mean_word_length': 6.5772357723577235, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4105241', 'n_tokens_mistral': 1423, 'n_tokens_neox': 1290, 'n_words': 161}