http://mbed.org/users/yihui/code/USBDevice/#74ca09725b68