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

[HSLink-Pro] fix delay issues for uart rx to usb #16

Merged
merged 4 commits into from
Sep 11, 2024

Conversation

Evlers
Copy link
Contributor

@Evlers Evlers commented Sep 10, 2024

问题描述

UART连续RX的时候,由于ringbuffer的写入是在IDLE中断或者DMA完成中断执行的,导致连续的数据接收会延迟给到USB

解决方案

main中循环检查DMA是否存在数据,存在则将数据写入到ringbuffer推送至USB

@HalfSweet HalfSweet merged commit 3425a00 into cherry-embedded:master Sep 11, 2024
1 check passed
@Evlers Evlers deleted the fix branch September 12, 2024 01:50
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.

2 participants