blob: 70d9d365a1b6ce0c79957958fea83cbe17872f79 [file] [log] [blame]
ifdef CONFIG_HAS_STM32CUBE
ifdef CONFIG_SOC_SERIES_STM32F0X
obj-y += stm32f0xx/drivers/src/stm32f0xx_hal.o
obj-y += stm32f0xx/drivers/src/stm32f0xx_hal_rcc.o
obj-$(CONFIG_CLOCK_CONTROL_STM32_CUBE) += stm32f0xx/drivers/src/stm32f0xx_ll_utils.o
obj-$(CONFIG_SERIAL_HAS_DRIVER) += stm32f0xx/drivers/src/stm32f0xx_hal_uart.o
obj-y += stm32f0xx/soc/system_stm32f0xx.o
endif
ifdef CONFIG_SOC_SERIES_STM32F1X
obj-y += stm32f1xx/drivers/src/stm32f1xx_hal.o
obj-y += stm32f1xx/drivers/src/stm32f1xx_hal_rcc.o
obj-$(CONFIG_CLOCK_CONTROL_STM32_CUBE) += stm32f1xx/drivers/src/stm32f1xx_ll_utils.o
obj-$(CONFIG_PWM) += stm32f1xx/drivers/src/stm32f1xx_hal_tim.o
obj-$(CONFIG_I2C) += stm32f1xx/drivers/src/stm32f1xx_ll_i2c.o
obj-y += stm32f1xx/soc/system_stm32f1xx.o
endif
ifdef CONFIG_SOC_SERIES_STM32F3X
obj-y += stm32f3xx/drivers/src/stm32f3xx_hal.o
obj-y += stm32f3xx/drivers/src/stm32f3xx_hal_rcc.o
obj-$(CONFIG_CLOCK_CONTROL_STM32_CUBE) += stm32f3xx/drivers/src/stm32f3xx_ll_utils.o
obj-$(CONFIG_I2C) += stm32f3xx/drivers/src/stm32f3xx_ll_i2c.o
obj-$(CONFIG_I2C) += stm32f3xx/drivers/src/stm32f3xx_ll_rcc.o
obj-$(CONFIG_SPI_STM32) += stm32f3xx/drivers/src/stm32f3xx_ll_spi.o
obj-y += stm32f3xx/soc/system_stm32f3xx.o
endif
ifdef CONFIG_SOC_SERIES_STM32F4X
obj-y += stm32f4xx/drivers/src/stm32f4xx_hal.o
obj-y += stm32f4xx/drivers/src/stm32f4xx_hal_rcc.o
obj-$(CONFIG_CLOCK_CONTROL_STM32_CUBE) += stm32f4xx/drivers/src/stm32f4xx_ll_utils.o
obj-$(CONFIG_PWM) += stm32f4xx/drivers/src/stm32f4xx_hal_tim.o
obj-$(CONFIG_I2C) += stm32f4xx/drivers/src/stm32f4xx_ll_i2c.o
obj-$(CONFIG_SPI_STM32) += stm32f4xx/drivers/src/stm32f4xx_ll_spi.o
obj-$(CONFIG_RANDOM_STM32_RNG) += stm32f4xx/drivers/src/stm32f4xx_ll_rng.o
obj-$(CONFIG_ETH_STM32_HAL) += stm32f4xx/drivers/src/stm32f4xx_hal_eth.o
obj-$(CONFIG_USB_DC_STM32) += stm32f4xx/drivers/src/stm32f4xx_ll_usb.o \
stm32f4xx/drivers/src/stm32f4xx_hal_pcd.o \
stm32f4xx/drivers/src/stm32f4xx_hal_pcd_ex.o
obj-y += stm32f4xx/soc/system_stm32f4xx.o
endif
ifdef CONFIG_SOC_SERIES_STM32F7X
obj-y += stm32f7xx/drivers/src/stm32f7xx_hal.o
obj-y += stm32f7xx/soc/system_stm32f7xx.o
endif
ifdef CONFIG_SOC_SERIES_STM32L4X
obj-y += stm32l4xx/drivers/src/stm32l4xx_hal.o
obj-y += stm32l4xx/drivers/src/stm32l4xx_hal_rcc.o
obj-$(CONFIG_CLOCK_CONTROL_STM32_CUBE) += stm32l4xx/drivers/src/stm32l4xx_ll_utils.o
obj-$(CONFIG_PWM) += stm32l4xx/drivers/src/stm32l4xx_hal_tim.o
obj-$(CONFIG_I2C) += stm32l4xx/drivers/src/stm32l4xx_ll_i2c.o
obj-$(CONFIG_SPI_STM32) += stm32l4xx/drivers/src/stm32l4xx_ll_spi.o
obj-y += stm32l4xx/soc/system_stm32l4xx.o
endif
endif