made sw_pwm static to avoid dead code