Skip to content

Better support highspeed mode#464

Merged
hathach merged 10 commits into
masterfrom
improve-highspeed
Jul 19, 2020
Merged

Better support highspeed mode#464
hathach merged 10 commits into
masterfrom
improve-highspeed

Conversation

@hathach
Copy link
Copy Markdown
Owner

@hathach hathach commented Jul 15, 2020

Describe the PR
Fix #423, HS device can operate at FS mode e.g plugging into FS host. Therefore actual link speed should be checked when returning configuration descriptors and/or other related scenario when there is difference between fs/hs mode.

  • add tud_speed_get()
  • add dcd helper void dcd_event_bus_reset (uint8_t rhport, tusb_speed_t speed, bool in_isr), which all highspeed core should report its speed after a bus reset.
  • define both fs and hs configuration descriptor
  • rename CFG_TUD_CDC_EPSIZE to CFG_TUD_CDC_EP_BUFSIZE with default size of 64 for FS, and 512 for HS
  • rename CFG_TUD_MSC_BUFSIZE to CFG_TUD_MSC_EP_BUFSIZE
  • rename CFG_TUD_HID_BUFSIZE to CFG_TUD_HID_EP_BUFSIZE

hathach added 2 commits July 16, 2020 00:44
- define both fs and hs configuration descriptor
- rename CFG_TUD_CDC_EPSIZE to CFG_TUD_CDC_EP_BUFSIZE with default size of 64 for FS, and 512 for HS
@hathach hathach marked this pull request as draft July 15, 2020 17:56
@hathach hathach marked this pull request as ready for review July 16, 2020 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Teensy 4.0 board can't accept more than 64 bytes at a time on USB VCP

2 participants