Freq calculations using counters and interrupt

Dependencies:   FastPWM PwmIn USBDevice mbed