-
Couldn't load subscription status.
- Fork 8.1k
drivers: pwm: stm32: add device tree configuration for deadtime #98247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
drivers: pwm: stm32: add device tree configuration for deadtime #98247
Conversation
815ee4d to
c314aa5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some comments. Otherwise LGTM.
c314aa5 to
01e84c1
Compare
When using an stm32 in a bridge circuit with complementary outputs, the deadtime needs to be configurable to avoid shoot-thru current on the circuit. So, the HAL has the configuration in the BDTR init and use that api access to set the configuration. Signed-off-by: Charles Hardin <[email protected]>
01e84c1 to
3a7cd82
Compare
|
| type: int | ||
| default: 0 | ||
| description: | | ||
| Sets the dead-time configuration the Break and Dead-Time register (BDTR) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo:
| Sets the dead-time configuration the Break and Dead-Time register (BDTR) | |
| Sets the dead-time configuration in the Break and Dead-Time register (BDTR) |



When using an stm32 in a bridge circuit with complementary outputs, the deadtime needs to be configurable to avoid shoot-thru current on the circuit. So, the HAL has the configuration in the BDTR init and use that api access to set the configuration.