diff options
| author | Dario Nieuwenhuis <[email protected]> | 2024-04-22 13:29:38 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-04-22 13:29:38 +0000 |
| commit | e581c9f027e981622ccd13409992652bd7a68dfd (patch) | |
| tree | a3769ca74c9585a81895e8cdb6436ae88dbd2539 /embassy-stm32/src | |
| parent | a9878a243d6a913c1fb7244e91b048011f272fc7 (diff) | |
| parent | 01b36a44348dc8c065fdeb8787ac5a97ca8197f3 (diff) | |
Merge pull request #2849 from joelsa/add-vbus-faq
Add information about vbus_detection to the FAQ and link it in all USB examples.
Diffstat (limited to 'embassy-stm32/src')
| -rw-r--r-- | embassy-stm32/src/usb/otg.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-stm32/src/usb/otg.rs b/embassy-stm32/src/usb/otg.rs index b386c6977..29572d3c6 100644 --- a/embassy-stm32/src/usb/otg.rs +++ b/embassy-stm32/src/usb/otg.rs | |||
| @@ -281,10 +281,10 @@ pub struct Config { | |||
| 281 | /// Enable VBUS detection. | 281 | /// Enable VBUS detection. |
| 282 | /// | 282 | /// |
| 283 | /// The USB spec requires USB devices monitor for USB cable plug/unplug and react accordingly. | 283 | /// The USB spec requires USB devices monitor for USB cable plug/unplug and react accordingly. |
| 284 | /// This is done by checkihg whether there is 5V on the VBUS pin or not. | 284 | /// This is done by checking whether there is 5V on the VBUS pin or not. |
| 285 | /// | 285 | /// |
| 286 | /// If your device is bus-powered (powers itself from the USB host via VBUS), then this is optional. | 286 | /// If your device is bus-powered (powers itself from the USB host via VBUS), then this is optional. |
| 287 | /// (if there's no power in VBUS your device would be off anyway, so it's fine to always assume | 287 | /// (If there's no power in VBUS your device would be off anyway, so it's fine to always assume |
| 288 | /// there's power in VBUS, i.e. the USB cable is always plugged in.) | 288 | /// there's power in VBUS, i.e. the USB cable is always plugged in.) |
| 289 | /// | 289 | /// |
| 290 | /// If your device is self-powered (i.e. it gets power from a source other than the USB cable, and | 290 | /// If your device is self-powered (i.e. it gets power from a source other than the USB cable, and |
