New PWM code by Yeshwanth

Dependencies:   mbed

Changes