Fix support for PWM frequency and period