http://mbed.org/users/mbed_official/code/USBHost/#220cd93c9a5f