http://mbed.org/users/mbed_official/code/USBDevice/#4d3e7f3d5211