Skip to content

Conversation

@peter-marcisovsky
Copy link
Collaborator

Description

This MR adds Suspend/Resume events for CDC-ACM class driver as a follow-up for the Global/Suspend resume MR in esp-idf.

Added a backward compatibility for older IDF releases, where the suspend/resume will not be backported, by:

// For backward compatibility with IDF versions which do not have suspend/resume api
#ifdef USB_HOST_LIB_EVENT_FLAGS_AUTO_SUSPEND
#define CDC_HOST_SUSPEND_RESUME_API_SUPPORTED
#endif

Related

  • Suspend/Resume support for CDC Class driver

Testing

  • Added tests, which verify the class driver functionality with root port Suspend/Resume events

Checklist

Before submitting a Pull Request, please ensure the following:

  • 🚨 This PR does not introduce breaking changes.
  • All CI checks (GH Actions) pass.
  • Documentation is updated as needed.
  • Tests are updated or added as necessary.
  • Code is well-commented, especially in complex areas.
  • Git history is clean — commits are squashed to the minimum necessary.

@peter-marcisovsky peter-marcisovsky self-assigned this Jul 11, 2025
@peter-marcisovsky peter-marcisovsky added the Status: In Progress Issue is being worked on label Jul 11, 2025
@peter-marcisovsky peter-marcisovsky force-pushed the feat/usb_host_cdc_am_suspend_resume_evts branch from 86cd783 to b82e513 Compare July 11, 2025 13:26
@peter-marcisovsky peter-marcisovsky force-pushed the feat/usb_host_cdc_am_suspend_resume_evts branch 2 times, most recently from 042aa83 to adc2b01 Compare August 8, 2025 07:10
@peter-marcisovsky peter-marcisovsky force-pushed the feat/usb_host_cdc_am_suspend_resume_evts branch from adc2b01 to b718d82 Compare August 21, 2025 10:08
    - usb_host lib supports global suspend and resume
    - backward compatibility with older IDF releases
    - CDC-ACM Host target tests
@peter-marcisovsky peter-marcisovsky force-pushed the feat/usb_host_cdc_am_suspend_resume_evts branch from b718d82 to 31ae0b4 Compare August 21, 2025 11:11
@peter-marcisovsky peter-marcisovsky added stall PR is stall due to low priority, or blocked by other PR and removed Status: In Progress Issue is being worked on labels Sep 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stall PR is stall due to low priority, or blocked by other PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants