aboutsummaryrefslogtreecommitdiff
path: root/embassy-nrf/src/usb.rs
Commit message (Collapse)AuthorAgeFilesLines
* nrf/usb: switch to new interrupt binding, fix vbus detect on nrf53.Dario Nieuwenhuis2023-03-061-1028/+0
|
* nrf: docs.Dario Nieuwenhuis2023-02-011-26/+64
|
* usb: docsDario Nieuwenhuis2023-01-311-4/+4
|
* Refactor embassy-usb address handling to allow reordering of status resoponsechemicstry2023-01-111-5/+5
|
* Switch to async-fn-in-traitDario Nieuwenhuis2022-11-251-210/+171
|
* Update usbDion Dokter2022-10-261-7/+7
|
* usb: make HALs depend only on embassy-usb-driver.Dario Nieuwenhuis2022-09-271-4/+2
|
* usb: split driver trait to separate crate.Dario Nieuwenhuis2022-09-261-8/+9
|
* Replace futures::future::poll_fn -> core::future::poll_fn.Dario Nieuwenhuis2022-09-221-2/+1
|
* split `embassy-util` into `embassy-futures`, `embassy-sync`.Dario Nieuwenhuis2022-08-221-1/+1
|
* Merge #890bors[bot]2022-08-021-1/+1
|\ | | | | | | | | | | | | | | 890: Implement UsbSupply for a reference of SignalledSupply r=Dirbaio a=matoushybl Co-authored-by: Matous Hybl <[email protected]>
| * Implement UsbSupply for a reference of SignalledSupplyMatous Hybl2022-08-021-1/+1
| |
* | Split embassy crate into embassy-executor, embassy-util.Dario Nieuwenhuis2022-07-291-1/+1
| |
* | nrf: replace PhantomData usages with PeripheralRef.Dario Nieuwenhuis2022-07-231-10/+10
| |
* | Rename Unborrowed -> PeripheralRef, Unborrow -> PeripheralDario Nieuwenhuis2022-07-231-9/+5
| |
* | nrf/usb: prevent user code from constructing a PowerUsb directly.Dario Nieuwenhuis2022-07-211-2/+4
|/ | | | | | PowerUsb must be constructed through `new()` so that it sets up the IRQ. It must have at least one private field, otherwise user code can construct it directly with `PowerUsb{}`.
* Trait for UsbSupplyhuntc2022-07-091-75/+149
| | | | 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.
* New constructor to cater for the softdevicehuntc2022-07-081-2/+21
| | | | Also, correctly sets the initial power management state when using power management
* Puts in the machinery to handle power detected/removedhuntc2022-07-071-3/+67
|
* Run rustfmt.Dario Nieuwenhuis2022-06-121-44/+15
|
* Add embassy-cortex-m crate.Dario Nieuwenhuis2022-06-121-2/+2
| | | | | | - Move Interrupt and InterruptExecutor from `embassy` to `embassy-cortex-m`. - Move Unborrow from `embassy` to `embassy-hal-common` (nothing in `embassy` requires it anymore) - Move PeripheralMutex from `embassy-hal-common` to `embassy-cortex-m`.
* usb: make ControlPipe accept, reject async.Dario Nieuwenhuis2022-05-301-7/+13
|
* usb: add first, last params to ControlPipe data_in, data_out.Dario Nieuwenhuis2022-05-301-4/+13
|
* usb: remove is_stalled, set_stalled from Endpoint.Dario Nieuwenhuis2022-05-301-41/+19
| | | | | They're unused, and I believe it's not allowed for classes to stall EPs on their own?
* nrf/usb: fix control out transfers getting corrupted due to ep0rcvout ↵Dario Nieuwenhuis2022-05-121-14/+11
| | | | sticking from earlier.
* usb: parse request in embassy-usb instead of the driver.Dario Nieuwenhuis2022-05-121-9/+4
|
* usb: merge `alloc_control_pipe` and `into_bus` into `start`.Dario Nieuwenhuis2022-05-101-33/+14
| | | | | This prevents calling `alloc_control_pipe` twice at compile time, which was always an error.
* usb: remove address arg from endpoint allocation.Dario Nieuwenhuis2022-05-091-38/+21
|
* usb: builtin handling of interface alternate settingsDario Nieuwenhuis2022-04-231-43/+67
| | | | | | | | The stack reads its own descriptors to figure out which endpoints are used in which alt settings, and enables/disables them as needed. The ControlHandler has a callback so it can get notified of alternate setting changes, which is purely informative (it doesn't have to do anything).
* Make Driver::disable async and fix commentalexmoon2022-04-131-3/+6
|
* Remove dead code on nrf5340alexmoon2022-04-131-0/+2
|
* Add DeviceStateHandler, DeviceCommand channel, and remote wakeup supportalexmoon2022-04-131-35/+69
|
* Unify ReadError and WriteError into EndpointErroralexmoon2022-04-091-13/+13
|
* Fix spurious ControlPipe::data_in errorsalexmoon2022-04-071-6/+6
|
* Async-ify Driver::enable and UsbDeviceBuilder::buildalexmoon2022-04-071-23/+35
|
* usb: abort control data in/out on reset or when receiving another SETUP.Dario Nieuwenhuis2022-04-061-29/+42
| | | | This removes the horrible timeout hack.
* Add basic device state handling for endpoints.alexmoon2022-04-061-51/+129
|
* Simplify hid output report handlingalexmoon2022-04-061-15/+5
|
* Reduce memory overhead and simplify logic for merging endpoint and control ↵alexmoon2022-04-061-5/+15
| | | | request output reports.
* usb: centralize all control logging in control.rsDario Nieuwenhuis2022-04-061-2/+0
|
* nrf/usb: unify in/out wakers for ep0Dario Nieuwenhuis2022-04-061-11/+12
|
* Move data chunking from the driver to the libalexmoon2022-04-061-98/+55
|
* usb: cleanup and simplify error handling.Dario Nieuwenhuis2022-04-061-11/+7
|
* usb: cleanup logging.Dario Nieuwenhuis2022-04-061-8/+10
|
* usb: add -usb-serial crate, fix warnings and stable build.Dario Nieuwenhuis2022-04-061-4/+7
|
* Support multi-frame data phase control requestsalexmoon2022-04-061-29/+54
|
* Only copy through RAM when neededalexmoon2022-04-061-3/+9
|
* nrf/usb: fix wrong DMA read sizeDario Nieuwenhuis2022-04-061-1/+1
|
* Add support for USB classes handling control requests.alexmoon2022-04-061-152/+272
|
* nrf/usb: update where clause syntax.Dario Nieuwenhuis2022-04-061-12/+3
|