talorion
e117ef5c3c
use descriptive variable names
2020-09-08 10:54:09 +02:00
talorion
6a50ecad5f
pwmout - STM - add read methods for period and pulsewidth
2020-09-02 13:39:15 +02:00
jeromecoutant
e10a233c80
STM32 PWM : avoid glitch after duty cycle change
2020-07-02 14:54:09 +02:00
Przemyslaw Stekiel
b2dad08387
Change explicit pinmap to static pinmap
2019-11-28 08:32:12 +01:00
Przemyslaw Stekiel
d75cc97d80
Explicit pinmap - fix style
2019-11-28 08:32:02 +01:00
Przemyslaw Stekiel
ce4a943350
STM PWM driver: Add explicit pinmap support
2019-11-28 08:31:56 +01:00
Alexandre Bourdiol
a339084684
STM32: pwmout_write: configure channel only when not already enabled
...
Fix PWM glitch on write(), TARGET_STM/pwmout_api.c, #10734
2019-06-20 17:49:16 +02:00
Russ Butler
be492fe07a
Add HAL API for pwmout pinmap
...
Add the function pwm_pinmap to all targets.
2019-02-08 09:10:19 -06:00
Laurent Louf
db3f05e5fe
Add some rounding to determine the pulse value for PWM for the STM target.
2018-12-14 12:08:09 +01:00
jeromecoutant
433ba46132
TARGET_STM astyle
2018-06-27 14:21:07 +02:00
Laurent MEUNIER
3842f6ea0a
STM32: fix formatting
...
Use the recommended style
if (condition) {
do();
} else {
do_else();
}
2017-02-27 17:07:05 +01:00
Laurent MEUNIER
8e5d2eb1dc
STM32: pwm period and prescaler calculation
...
Correct the while loop limit and add a safe guard to avoid infinite loop.
2017-02-27 13:47:34 +01:00
Laurent MEUNIER
1cbb3e18ac
STM32: make PWM driver into a common file
...
The pwmout driver is very similar for each STM32 family.
The only family specific part is defined in pwmout_device.h file.
It mainly contains few specific information:
- The mapping of PWM/TIMERS to APB1 or APB2 so that we can get the clock
- The clock calculation uses the right APB clock, which was sometimes
not the case before and could have lead to errors in case dividers were
enabled on APB clock settings. This case is now covered.
- Inactivation of inverted support on feaw families
2017-02-17 14:11:56 +01:00