| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| ... | ||||||
| * | nRF documentation warning fixes | Ulf Lilleengen | 2022-08-22 | 3 | -4/+7 | |
| | | ||||||
| * | Split embassy crate into embassy-executor, embassy-util. | Dario Nieuwenhuis | 2022-07-29 | 1 | -1/+1 | |
| | | ||||||
| * | Build in a new Unpowered state | huntc | 2022-07-08 | 1 | -24/+21 | |
| | | | | | Replaces the sub-state of representing being being available. Power states also now set enable/disable directly too, which simplifies code. | |||||
| * | Puts in the machinery to handle power detected/removed | huntc | 2022-07-07 | 3 | -71/+23 | |
| | | ||||||
| * | Introduces EnabledUsbDevice | huntc | 2022-07-07 | 2 | -0/+69 | |
| | | | | | 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. | |||||
| * | Run rustfmt. | Dario Nieuwenhuis | 2022-06-12 | 4 | -71/+23 | |
| | | ||||||
| * | usb: set default max_packet_size_0 to 64. | Dario Nieuwenhuis | 2022-05-31 | 1 | -1/+1 | |
| | | | | | | Supported chips can always do 64 bytes, 8 bytes seems to be more rare. We can add a way for the driver to specify the default in the future. | |||||
| * | usb: make ControlPipe accept, reject async. | Dario Nieuwenhuis | 2022-05-30 | 2 | -5/+11 | |
| | | ||||||
| * | usb: add first, last params to ControlPipe data_in, data_out. | Dario Nieuwenhuis | 2022-05-30 | 2 | -7/+26 | |
| | | ||||||
| * | usb: remove is_stalled, set_stalled from Endpoint. | Dario Nieuwenhuis | 2022-05-30 | 1 | -9/+0 | |
| | | | | | | They're unused, and I believe it's not allowed for classes to stall EPs on their own? | |||||
| * | usb: delay bus.set_address() to after ending the control transfer. | Dario Nieuwenhuis | 2022-05-30 | 1 | -7/+20 | |
| | | ||||||
| * | usb: parse request in embassy-usb instead of the driver. | Dario Nieuwenhuis | 2022-05-12 | 2 | -4/+4 | |
| | | ||||||
| * | usb: merge `alloc_control_pipe` and `into_bus` into `start`. | Dario Nieuwenhuis | 2022-05-10 | 2 | -16/+13 | |
| | | | | | | This prevents calling `alloc_control_pipe` twice at compile time, which was always an error. | |||||
| * | usb: merge Control logic into main code. | Dario Nieuwenhuis | 2022-05-09 | 2 | -168/+86 | |
| | | | | | | Now that control stuff is called from just one place, there's no need to keep it as a separate struct. | |||||
| * | usb: simplify control in/out handlng, calling response from a single place. | Dario Nieuwenhuis | 2022-05-09 | 3 | -148/+152 | |
| | | ||||||
| * | usb: remove address arg from endpoint allocation. | Dario Nieuwenhuis | 2022-05-09 | 2 | -10/+6 | |
| | | ||||||
| * | usb: add support for custom string descriptors. | Dario Nieuwenhuis | 2022-04-23 | 3 | -17/+59 | |
| | | ||||||
| * | usb: set the interface handler in InterfaceBuilder. | Dario Nieuwenhuis | 2022-04-23 | 1 | -5/+6 | |
| | | ||||||
| * | usb: builtin handling of interface alternate settings | Dario Nieuwenhuis | 2022-04-23 | 7 | -95/+279 | |
| | | | | | | | | | 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). | |||||
| * | usb: improved descriptor building API | Dario Nieuwenhuis | 2022-04-16 | 2 | -179/+185 | |
| | | | | | | | | The same API call allocates interfaces/endpoints/etc and writes their descriptors. This means less API calls, and less possibility to screw things up. DescriptorWriter is now private. | |||||
| * | usb: rename UsbDeviceBuilder -> Builder. | Dario Nieuwenhuis | 2022-04-16 | 2 | -4/+4 | |
| | | ||||||
| * | usb: fix wrong logging of CONTROL OUT data. | Dario Nieuwenhuis | 2022-04-15 | 1 | -2/+2 | |
| | | ||||||
| * | Split UsbDevice::run into run and run_until_suspend | alexmoon | 2022-04-13 | 1 | -48/+81 | |
| | | ||||||
| * | Remove channel and make run future cancelable | alexmoon | 2022-04-13 | 3 | -172/+72 | |
| | | ||||||
| * | Use embassy::util::select3 | alexmoon | 2022-04-13 | 2 | -52/+1 | |
| | | ||||||
| * | Make Driver::disable async and fix comment | alexmoon | 2022-04-13 | 2 | -4/+5 | |
| | | ||||||
| * | Remote wakeup bug fixes | alexmoon | 2022-04-13 | 1 | -12/+18 | |
| | | ||||||
| * | Add DeviceStateHandler, DeviceCommand channel, and remote wakeup support | alexmoon | 2022-04-13 | 4 | -57/+280 | |
| | | ||||||
| * | Unify ReadError and WriteError into EndpointError | alexmoon | 2022-04-09 | 2 | -23/+11 | |
| | | ||||||
| * | Async-ify Driver::enable and UsbDeviceBuilder::build | alexmoon | 2022-04-07 | 3 | -13/+15 | |
| | | ||||||
| * | usb: abort control data in/out on reset or when receiving another SETUP. | Dario Nieuwenhuis | 2022-04-06 | 2 | -2/+8 | |
| | | | | | This removes the horrible timeout hack. | |||||
| * | usb: fix slow enumeration with EP0 max_packet_size of 8 or 16. | Dario Nieuwenhuis | 2022-04-06 | 2 | -2/+15 | |
| | | ||||||
| * | Add basic device state handling for endpoints. | alexmoon | 2022-04-06 | 2 | -2/+17 | |
| | | ||||||
| * | Simplify hid output report handling | alexmoon | 2022-04-06 | 1 | -8/+0 | |
| | | ||||||
| * | Reduce memory overhead and simplify logic for merging endpoint and control ↵ | alexmoon | 2022-04-06 | 1 | -0/+8 | |
| | | | | | request output reports. | |||||
| * | usb: log on reset, resume, suspend | Dario Nieuwenhuis | 2022-04-06 | 1 | -1/+5 | |
| | | ||||||
| * | usb: centralize all control logging in control.rs | Dario Nieuwenhuis | 2022-04-06 | 2 | -11/+17 | |
| | | ||||||
| * | Refactor ControlPipe to use the typestate pattern for safety | alexmoon | 2022-04-06 | 2 | -122/+157 | |
| | | ||||||
| * | Move data chunking from the driver to the lib | alexmoon | 2022-04-06 | 2 | -32/+106 | |
| | | ||||||
| * | usb: cleanup and simplify error handling. | Dario Nieuwenhuis | 2022-04-06 | 3 | -51/+36 | |
| | | ||||||
| * | usb: cleanup logging. | Dario Nieuwenhuis | 2022-04-06 | 1 | -1/+1 | |
| | | ||||||
| * | usb: add -usb-serial crate, fix warnings and stable build. | Dario Nieuwenhuis | 2022-04-06 | 2 | -7/+4 | |
| | | ||||||
| * | Add handlers for standard reqs to ControlHandler | alexmoon | 2022-04-06 | 2 | -37/+63 | |
| | | ||||||
| * | Add a control_buf to UsbDevice | alexmoon | 2022-04-06 | 3 | -5/+21 | |
| | | ||||||
| * | Switch to ControlHandler owned bufs for control_in() | alexmoon | 2022-04-06 | 2 | -11/+7 | |
| | | ||||||
| * | usb: update docs on ControlHandler. | Dario Nieuwenhuis | 2022-04-06 | 1 | -17/+4 | |
| | | ||||||
| * | usb: simplify buffer handling for Control IN transfers. | Dario Nieuwenhuis | 2022-04-06 | 2 | -54/+13 | |
| | | ||||||
| * | usb: nicer names for control structs. | Dario Nieuwenhuis | 2022-04-06 | 2 | -24/+20 | |
| | | ||||||
| * | usb: move all control-related stuff to `mod control`. | Dario Nieuwenhuis | 2022-04-06 | 4 | -108/+105 | |
| | | ||||||
| * | usb: associate ControlHandlers with interfaces, automatically route requests. | Dario Nieuwenhuis | 2022-04-06 | 3 | -74/+76 | |
| | | ||||||
