added pwm api
added adc support