add PWM module clock status check function