michallenc opened a new pull request, #15859: URL: https://github.com/apache/nuttx/pull/15859
## Summary DTE (dead time enable) is the 17th bit in CMRx (channel mode) register. Function `pwm_set_polarity` did however read and write this register as 16 bit large, therefore dead time generation was always disabled. This fixes the issue, `pwm_set_polarity` now reads the register as 32 large. Also set the initial value of CMRx correctly in `pwm_setup`. ## Impact SAMv7 PWM driver now has correctly enabled dead time generation. No impact on configuration/setup. ## Testing Dead time was not generated at all before this fix. Now the generated pulse with dead time looks correct at the oscilloscope. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
