Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1902: USB: Add CDC support, update capsule stack r=ppannuto a=bradjc ### Pull Request Overview This pull request is part of tock#1048, tock#1893. This adds CDC support which implements `kernel::hil::Uart`. This allows us to run console over USB without having to write our own host-side kernel drivers. On that path, this also updates the capsules USB stack to allow for the larger descriptors we use with the CDC device. This is also the first time we have needed multiple interface descriptors, so it adds support for that as well. The bug fixes needed along the way are in separate PRs. ### Testing Strategy This pull request was tested by running apps that use the console on imix, and setting up the console to use UART over CDC rather than the UART driver. ### TODO or Help Wanted This does not work on the nRF52 (at least on my computer) because that driver does not support CTRL WRITE messages. FYI. I had to add a platform-specific variable, since the nRF only works if the device descriptor says the packet size is 64, and the SAM4L driver only works if the device descriptor says the packet size is 8. This also makes the USB stack work on the SAM4L again. ### Documentation Updated - [x] Updated the relevant files in `/docs`, or no updates are required. ### Formatting - [x] Ran `make format`. - [x] Fixed errors surfaced by `make clippy`. Co-authored-by: Brad Campbell <bradjc5@gmail.com> Co-authored-by: Branden Ghena <brghena@berkeley.edu> Co-authored-by: Hudson Ayers <hayers@stanford.edu>
- Loading branch information