drivers: pwm: stm32: use Kconfig to select HAL/LL sources

Use "select USE_STM32_HAL_TIM" to select the needed STM32 HAL files,
instead of editing ext/hal/st/stm32cube/CMakeLists.txt

Signed-off-by: Erwin Rol <erwin@erwinrol.com>
This commit is contained in:
Erwin Rol 2017-10-31 11:56:02 +01:00 committed by Kumar Gala
parent 5ed492e0c7
commit d54aaa0326

View File

@ -10,6 +10,7 @@ menuconfig PWM_STM32
bool "STM32 MCU PWM driver"
default n
depends on PWM && SOC_FAMILY_STM32
select USE_STM32_HAL_TIM
help
This option enables the PWM driver for STM32 family of
processors. Say y if you wish to use PWM port on STM32