Skip to content

net: make bInterval a parameter in TUD_CDC_NCM_DESCRIPTOR#3567

Closed
morse-cedricvandenbergh wants to merge 1 commit into
hathach:masterfrom
morse-cedricvandenbergh:make-bInterval-a-parameter-in-TUD_CDC_NCM_DESCRIPTOR
Closed

net: make bInterval a parameter in TUD_CDC_NCM_DESCRIPTOR#3567
morse-cedricvandenbergh wants to merge 1 commit into
hathach:masterfrom
morse-cedricvandenbergh:make-bInterval-a-parameter-in-TUD_CDC_NCM_DESCRIPTOR

Conversation

@morse-cedricvandenbergh
Copy link
Copy Markdown

The notification endpoint bInterval was hardcoded to 50 in the macro. Expose it as _ep_notif_interval so callers can set an appropriate value for their device speed, per discussion #3553.

Update net_lwip_webserver to pass TUD_OPT_HIGH_SPEED ? 9 : 50, which preserves the original 50ms polling interval on full-speed (50 frames) and approximates it on high-speed (bInterval=9 → 2^8 × 125µs = 32ms).

The notification endpoint bInterval was hardcoded to 50 in the macro.
Expose it as _ep_notif_interval so callers can set an appropriate value
for their device speed, per discussion hathach#3553.

Update net_lwip_webserver to pass TUD_OPT_HIGH_SPEED ? 9 : 50, which
preserves the original 50ms polling interval on full-speed (50 frames)
and approximates it on high-speed (bInterval=9 → 2^8 × 125µs = 32ms).
@morse-cedricvandenbergh
Copy link
Copy Markdown
Author

Implemneted as part of #3568

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.

1 participant