http://mbed.org/users/mbed_official/code/USBDevice/#335f2506f422