added jan's pwm driver code