Update pwm.h

Adding a new function.