output pwm based on linux timer