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

Set USB SRAM QoS to sensitive latency #509

Merged
merged 1 commit into from
Apr 7, 2020
Merged

Set USB SRAM QoS to sensitive latency #509

merged 1 commit into from
Apr 7, 2020

Conversation

sameer
Copy link
Contributor

@sameer sameer commented Apr 2, 2020

By default this is 00 for both DQOS and CQOS, which means that USB is treated as a background operation and there is at least a one clock-cycle SRAM access latency. This reduces the SRAM clock-cycle latency for USB by setting it to 10, giving it higher memory access priority.

This is done by Adafruit and by the Rust SAMD21 support crate (albeit at critical sensitivity) to improve USB performance and ensure correct behavior.
Relevant datasheet section for QOSCTRL
Relevant datasheet explanation for QoS

@facchinm
Copy link
Member

facchinm commented Apr 7, 2020

LGTM! Merging, thanks!

@facchinm facchinm merged commit 4587fc5 into arduino:master Apr 7, 2020
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.

None yet

2 participants