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

虚拟串口参数改变问题,目前无法更改转到实际的串口发出 #11

Closed
Kevincoooool opened this issue Jul 24, 2020 · 1 comment

Comments

@Kevincoooool
Copy link

现在看到这一段:

void cdc_line_coding_change(tusb_cdc_device_t *cdc) { // TODO, handle the line coding change //cdc->line_coding.bitrate; //cdc->line_coding.databits; //cdc->line_coding.stopbits; //cdc->line_coding.parity; }
这一段是用来改串口的波特率的吗,现在发现这个函数好像没用,我想更改波特率的时候,STM32端能够收到并且重新初始化串口用来做USB转串口

@xtoolbox
Copy link
Owner

cdc_line_coding_change这个函数就是用来配置硬件串口参数的,新的参数会存放在cdc->line_coding这个结构中

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

No branches or pull requests

2 participants