aboutsummaryrefslogtreecommitdiffstats
path: root/src/generic/usb_cdc.h
Commit message (Collapse)AuthorAgeFilesLines
* usb_cdc_ep: Define endpoint sizes in usb_cdc_ep.hKevin O'Connor2025-02-151-8/+0
| | | | | | | | Move the definition of the usb endpoint sizes from usb_cdc.h to usb_cdc_ep.h . This allows individual boards to override the default endpoint sizes. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* usb_cdc: Rename usb_request_bootloader() to bootloader_request()Kevin O'Connor2022-07-291-1/+0
| | | | | | | Rename this board API function to a more generic name. This is in preparation for calling the function from the canbus code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* usb_cdc: Add a usb_fill_serial() helper functionKevin O'Connor2019-11-251-0/+1
| | | | | | | Add a helper function to fill the usb serial string descriptor. Use it in the lpc176x code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lpc176x: read chip id and use as usb serial. (#2184)Matt Baker2019-11-211-0/+1
| | | Signed-off-by: Matt Baker <baker.matt.j@gmail.com>
* usb_cdc: Add support for detecting a USB level Arduino bootloader requestKevin O'Connor2018-12-241-0/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* usb_cdc: Add usb_read_ep0_setup() interface functionKevin O'Connor2018-09-301-0/+1
| | | | | | | Use new usb_read_ep0_setup() function when reading a setup packet - this allows the low-level usb hardware code to better handle errors. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* usb_cdc: Add support for usb_send_ep0_progmem()Kevin O'Connor2018-09-301-0/+1
| | | | | | | Add support for explicitly sending to the ep0 pipe from constant "progmem" memory on the AVR. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* usb_cdc: Rename interface functions to avoid the term "setup"Kevin O'Connor2018-09-301-5/+4
| | | | | | | Use "ep0" when referring to endpoint0 - don't use "setup" as that can be confused with the low-level usb setup token. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* usb_cdc: Allow USB endpoint ids to be board specificKevin O'Connor2018-08-061-7/+1
| | | | | | | | It's common for boards to have restrictions on the type of each endpoint. So, make it possible for the board to select the endpoint ids for each endpoint. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lpc176x: Initial support for serial over usbKevin O'Connor2018-05-251-0/+35
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>