drivers: pwm: stm32: refactor driver using LL API

The PWM drivers has been refactored using the HAL LL API. Not only that,
but the set pin_set function is now faster, as channel output compare is
just initialized if needed.

NOTE: Has been tested using H743zi board for now.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
This commit is contained in:
Gerard Marull-Paretas 2020-04-21 21:50:03 +02:00 committed by Carles Cufí
commit 528a98ba3f
17 changed files with 261 additions and 210 deletions

View file

@ -75,6 +75,10 @@
#include <stm32f1xx_ll_utils.h>
#endif
#ifdef CONFIG_PWM_STM32
#include <stm32f1xx_ll_tim.h>
#endif /* CONFIG_PWM_STM32 */
#endif /* !_ASMLANGUAGE */
#endif /* _STM32F1_SOC_H_ */