pwm_config_set_phase_correct() function
Set phase correction in a PWM configuration Setting phase control to true means that instead of wrapping back to zero when the wrap point is reached, the PWM starts counting back down. The output frequency is halved when phase-correct mode is enabled.
Arguments
c
PWM configuration struct to modify
phase_correct
true to set phase correct modulation, false to set trailing edge