drivers: pwm: Adding a flag to allow build for stm32l1 series

Include a flag to allow build for stm32l1 series

Signed-off-by: Sidhdharth Yadav <sidhdharth.yadav@hcl.com>
This commit is contained in:
Sidhdharth Yadav 2021-04-20 16:31:27 +05:30 committed by Carles Cufí
commit e2a29bf6a4

View file

@ -322,7 +322,7 @@ static int pwm_stm32_init(const struct device *dev)
return -EIO;
}
#ifndef CONFIG_SOC_SERIES_STM32L0X
#if !defined(CONFIG_SOC_SERIES_STM32L0X) && !defined(CONFIG_SOC_SERIES_STM32L1X)
/* enable outputs and counter */
if (IS_TIM_BREAK_INSTANCE(cfg->timer)) {
LL_TIM_EnableAllOutputs(cfg->timer);