Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
Hey guys. Is there a chance we could get connected/disconnected callbacks in the USBDevice library for self-powered devices? I'm working on a battery-powered project, and I had to roll my own solution that polls the VBUSDEBOUNCED bit on the LPC11U35 in the USB thread in order to generate these events. This works, but it's not ideal. In fact, USBDevice in it's current state doesn't seem to have a concept of being "disconnected". This pull request over at GitHub should help with that, but it's still not a perfect solution.