add pwm_duty_set func. and modified timer config and prescalor.