a0f1b0ee01
Split embassy crate into embassy-executor, embassy-util.
2022-07-29 23:40:36 +02:00
8785fbc6f1
Trait for UsbSupply
...
Eliminated a signal by using a simpler trait method that returns whether VBus power is available. Also includes a UsbSupply that can be signalled for use with the nRF softdevice. Includes the requirement for waiting for power to become available.
2022-07-09 17:57:31 +10:00
4a8f117f25
Puts in the machinery to handle power detected/removed
2022-07-07 10:08:57 +10:00
c46e9b6cfc
Introduces EnabledUsbDevice
...
EnabledUsbDevice is a wrapper around the UsbDevice where their 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 signalling for enablement.
2022-07-07 10:08:57 +10:00
a8703b7598
Run rustfmt.
2022-06-12 22:22:31 +02:00
30d4d0e9d7
Merge #763 #766
...
763: Misc USB improvements r=Dirbaio a=Dirbaio
The "simplify control in/out handlng" commit gives a -2kb code size improvement.
766: Make usb_serial examples work on windows r=Dirbaio a=timokroeger
Windows shows `error 10` when using CDC ACM on non composite devices.
Workaround is to use IADS:
https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/kconfig/CONFIG_CDC_ACM_IAD.html#help
Co-authored-by: Dario Nieuwenhuis <dirbaio@dirbaio.net >
Co-authored-by: Timo Kröger <timo.kroeger@hitachienergy.com >
2022-05-12 13:04:29 +00:00
2a7afe4262
Make usb_serial examples work on windows
...
Windows shows `error 10` when using CDC ACM on non composite devices.
Workaround is to use IADS:
https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/kconfig/CONFIG_CDC_ACM_IAD.html#help
2022-05-12 08:05:13 +02:00
2e104170de
usb: remove address arg from endpoint allocation.
2022-05-09 02:07:48 +02:00
d409026b95
examples/nrf: add product strings to all usb examples.
2022-04-24 22:46:45 +02:00
1bf7b4d6c3
usb: rename UsbDeviceBuilder -> Builder.
2022-04-16 04:14:20 +02:00
f5656e3544
Add DeviceStateHandler, DeviceCommand channel, and remote wakeup support
2022-04-13 14:55:02 -04:00
e867364d42
Unify ReadError and WriteError into EndpointError
2022-04-09 01:48:17 +02:00
6abbfa9a92
Async-ify Driver::enable and UsbDeviceBuilder::build
2022-04-07 10:51:26 -04:00
2ce435dc34
Add basic device state handling for endpoints.
2022-04-06 05:38:11 +02:00
1672fdc666
usb-serial: make inner guts private.
2022-04-06 05:38:11 +02:00
d1e4b3d7d5
usb: add -usb-serial crate, fix warnings and stable build.
2022-04-06 05:38:11 +02:00