Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Migrate everything over to separate libraries. | Brian Cully | 2019-08-04 | 1 | -800/+0 |
| | | | | | | | | | | | * `usb-host` is the crate containing the HAL traits. * `bootkbd` is a crate for a bare-bones boot protocol keyboard driver. * `samd21-host` is a crate with an implementation of `usb-host` for a SAMD21 platform, with an example for the trinket-m0 which uses the `bootkbd` driver to print keyboard reports. | ||||
* | Short-circuit out of NAK on interrupt pipes. | Brian Cully | 2019-08-01 | 1 | -2/+9 |
| | | | | | Don't bother retrying. NAK on an interrupt endpoint means there's no data. | ||||
* | Minor reorg. | Brian Cully | 2019-08-01 | 1 | -13/+13 |
| | |||||
* | Remove debugging code. | Brian Cully | 2019-08-01 | 1 | -57/+0 |
| | |||||
* | Refactor so Endpoint controls pipe characteristics. | Brian Cully | 2019-08-01 | 1 | -73/+176 |
| | | | | | | Endpoints know their own address, number, max packet size, and data toggle states. When a pipe is needed, pass in the endpoint its needed for so that configuration can happen according to that endpoint. | ||||
* | WIP: Holy smokes I read my first keyboard report. | Brian Cully | 2019-07-30 | 1 | -7/+48 |
| | | | | Too bad it's still trfail town after the first, but progress! | ||||
* | Don't require retries when dispatching. | Brian Cully | 2019-07-30 | 1 | -2/+0 |
| | |||||
* | Use `repr(packed)` on pipe descriptors structure. | Brian Cully | 2019-07-30 | 1 | -4/+76 |
| | | | | Ensure offsets and sizes are correct with tests. | ||||
* | More short packet notes. | Brian Cully | 2019-07-28 | 1 | -1/+3 |
| | |||||
* | Rename USBToken/USBPipeType. | Brian Cully | 2019-07-28 | 1 | -24/+26 |
| | | | | These are implementation details of the samd platform as used. | ||||
* | `control_req` -> `control_transfer`. | Brian Cully | 2019-07-28 | 1 | -1/+1 |
| | | | | | Same as in/out transfer functions now, and matches USB spec terminology. | ||||
* | Update notes on short packets. | Brian Cully | 2019-07-28 | 1 | -6/+5 |
| | |||||
* | Add pipe::NO_DATA_STAGE const for convenience. | Brian Cully | 2019-07-28 | 1 | -1/+6 |
| | | | | | For use in `control_req`'s buffer argument if no data stage is required. It was either this or have a separate function. | ||||
* | Remove un-needed asserts. | Brian Cully | 2019-07-28 | 1 | -5/+0 |
| | |||||
* | Make `dispatch_retries` private. | Brian Cully | 2019-07-28 | 1 | -3/+1 |
| | |||||
* | Remove DataBuf exposure outside of pipe impl. | Brian Cully | 2019-07-28 | 1 | -24/+21 |
| | |||||
* | Rename RequestType subfields. | Brian Cully | 2019-07-28 | 1 | -4/+4 |
| | | | | | | | Mostly obvious stuff, but change `USBSetupType` to `RequestKind`, so it doesn't conflict with the `RequestType` in which it lives. This also solves the problem with `typ` and `set_typ` methods (now `kind` and `set_kind`). | ||||
* | Use TryFrom where possible, instead of panicking. | Brian Cully | 2019-07-28 | 1 | -3/+9 |
| | |||||
* | Rename basic USB protocol types. | Brian Cully | 2019-07-28 | 1 | -3/+7 |
| | |||||
* | WIP: read keyboard report (doesn't work) | Brian Cully | 2019-07-28 | 1 | -0/+4 |
| | |||||
* | Minor cleanup. | Brian Cully | 2019-07-27 | 1 | -9/+0 |
| | |||||
* | Reduce millis function pointer call to one location. | Brian Cully | 2019-07-27 | 1 | -63/+59 |
| | | | | | Trying to remove this function entirely from pipe/device in order to make it non-blocking. Right now it's only used for dispatch_retries. | ||||
* | Move log_regs. | Brian Cully | 2019-07-27 | 1 | -34/+37 |
| | |||||
* | Make dtgl_set/clear private again. | Brian Cully | 2019-07-27 | 1 | -11/+5 |
| | |||||
* | Move post-address device config to Device impl. | Brian Cully | 2019-07-27 | 1 | -3/+87 |
| | |||||
* | WIP: we have lights on the keyboard! | Brian Cully | 2019-07-27 | 1 | -24/+67 |
| | |||||
* | Update log levels. | Brian Cully | 2019-07-25 | 1 | -19/+27 |
| | |||||
* | Read entire buffers during IN transfers. | Brian Cully | 2019-07-25 | 1 | -27/+32 |
| | |||||
* | Make DataBuf hold a mut pointer. | Brian Cully | 2019-07-25 | 1 | -4/+4 |
| | | | | | Since this is being used by hardware DMA, and the hardware treats it as mutable, lets mark it as such. | ||||
* | Move USB host stuff to separate crate. | Brian Cully | 2019-07-25 | 1 | -0/+500 |