http://mbed.org/users/yihui/code/USBDevice/#01040319e35c