embassy/examples
bors[bot] 9753f76794
Merge #810
810: Takes care of power for nRF USB devices r=Dirbaio a=huntc

Modifies the usb-serial example to illustrate how to setup USB for situations where the USB power can be detected and removed.

Gaps:

~~* No support for the nrf-softdevices as yet, although this should be possible via another constructor.~~
* No support for the nrf5340, although this should be possible via USBREG.

The change is tested and appears to work. Some notes:

* There's an existing field named self_powered as a UsbDevice field. It doesn't ever appear to get set. I'm wondering if this field is intended to signal that a device has the nRF VBUS power situation or not. I'm not presently using it.
* The new PowerDetected event is generated on the bus initially in situations where just new is used i.e. without power management, including on STM. We can therefore rely on this event always being generated.

Old description:

~~EnabledUsbDevice is a wrapper around the `UsbDevice` where its enablement is also subject to external events, such as `POWER` events for nRF. It is introduced generically to support other platforms should they also require external signaling for enablement.~~

Co-authored-by: huntc <huntchr@gmail.com>
2022-07-11 00:01:41 +00:00
..
boot Use correct chip family name for example 2022-07-05 13:17:55 +02:00
nrf Trait for UsbSupply 2022-07-09 17:57:31 +10:00
rp Merge pull request #822 from embassy-rs/remove-authors 2022-06-18 17:33:29 +02:00
std Remove the authors field from Cargo.tomls 2022-06-18 02:16:40 +02:00
stm32f0 Merge pull request #822 from embassy-rs/remove-authors 2022-06-18 17:33:29 +02:00
stm32f1 Merge pull request #822 from embassy-rs/remove-authors 2022-06-18 17:33:29 +02:00
stm32f2 Merge pull request #822 from embassy-rs/remove-authors 2022-06-18 17:33:29 +02:00
stm32f3 Merge pull request #822 from embassy-rs/remove-authors 2022-06-18 17:33:29 +02:00
stm32f4 Use u32 instead of Duration for IWDG 2022-07-11 00:00:33 +03:00
stm32f7 Merge pull request #822 from embassy-rs/remove-authors 2022-06-18 17:33:29 +02:00
stm32g0 Merge pull request #822 from embassy-rs/remove-authors 2022-06-18 17:33:29 +02:00
stm32g4 Merge pull request #822 from embassy-rs/remove-authors 2022-06-18 17:33:29 +02:00
stm32h7 Merge pull request #822 from embassy-rs/remove-authors 2022-06-18 17:33:29 +02:00
stm32l0 Merge pull request #822 from embassy-rs/remove-authors 2022-06-18 17:33:29 +02:00
stm32l1 Merge pull request #822 from embassy-rs/remove-authors 2022-06-18 17:33:29 +02:00
stm32l4 Merge pull request #822 from embassy-rs/remove-authors 2022-06-18 17:33:29 +02:00
stm32l5 Merge pull request #822 from embassy-rs/remove-authors 2022-06-18 17:33:29 +02:00
stm32u5 Merge pull request #822 from embassy-rs/remove-authors 2022-06-18 17:33:29 +02:00
stm32wb Merge pull request #822 from embassy-rs/remove-authors 2022-06-18 17:33:29 +02:00
stm32wl Document configuration options and handle optional downlink 2022-07-04 10:33:29 +02:00
wasm Remove the authors field from Cargo.tomls 2022-06-18 02:16:40 +02:00