Skip to content
Commit 886a99e7 authored by Peter van der Perk's avatar Peter van der Perk Committed by Benjamin Cabé
Browse files

kinetis-tpm: Implement pulse_cycles directly instead of duty cycle



When using low PWM frequency i.e 50Hz the resolution of pulse_cycles
got lost from converting pulse_cycles to duty cycle % and then back to
pulse_cycles again.

Furthermore TPM_UpdateChnlEdgeLevelSelect call would restart the pwm
constantly on a mcux_tpm_set_cycles call now only call
TPM_UpdateChnlEdgeLevelSelect when changing the polarity

Signed-off-by: default avatarPeter van der Perk <peter.vanderperk@nxp.com>
parent d2d0e855
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment