Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(host) add endpoint close API and feat(HIL) improvement #3043

Merged
merged 14 commits into from
Mar 27, 2025

Conversation

hathach
Copy link
Owner

@hathach hathach commented Mar 20, 2025

Host

  • add tuh_enum_descriptor_device_cb() and tuh_enum_descriptor_configuration_cb() callback
  • support device with multiple configuration
  • move max3421e api into its own header

CDC device

  • rename tud_cdc_configure_fifo/_t to tud_cdc_configure/_t
  • add tx_overwritabe_if_not_connected for cdc driver configure

Endpoint close API
fix #3012

  • Add tuh_edpt_close() and hcd_edpt_close() API. tuh_edpt_close() will abort any pending transfer before closing endpoint
  • hcd_edpt_close() is implemented for hcd pio-usb, max3421e, ehci. Other ports just got stub (return false)
  • hcd_edpt_open() return failed if ep already opened to prevent memory leak on pio-usb max3421 and ehci

Hardware in the loop

  • Fix host/dual test with cdc missing chars with Linux terminal race condition between set line state and coding.
  • Enable host/dual test for pico, pico2, metro_m4 with max3421e
  • Add imxrt1064 to hil pool

BSP

  • imxrt: comment out BOARD_ConfigMPU() (neeed to more to per board basic)

hathach added 2 commits March 24, 2025 22:55
…figuration_cb() callback

host: support device with multiple configurations
add tx_overwritabe_if_not_connected for cdc driver configure
@hathach hathach changed the title enable hil dual for metro m4 with max3421 host and hil improvement Mar 24, 2025
@hathach hathach changed the title host and hil improvement host add endpoint close API and HIL improvement Mar 26, 2025
@hathach hathach changed the title host add endpoint close API and HIL improvement feat(host) add endpoint close API and feat(HIL) improvement Mar 26, 2025
@hathach hathach marked this pull request as ready for review March 26, 2025 16:20
@hathach hathach merged commit 8c1802e into master Mar 27, 2025
117 checks passed
@hathach hathach deleted the hcd-close-ep branch March 27, 2025 03:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add ability to close endpoints to host API
1 participant