The fastest approach is probably just setting the pin to input. Then flipping it back to
output when you need PWM on again.