Seems like all U[S]ARTs works well. Tested on speeds up to 2Mbaud (as CH340 can).

This commit is contained in:
Edward Emelianov
2026-02-17 23:37:17 +03:00
parent fb570367fa
commit 68028f42a3
13 changed files with 104 additions and 64 deletions

View File

@@ -45,8 +45,8 @@ int main(void){
USBPU_OFF();
USB_setup();
//uint32_t ctr = Tms;
usb_LineCoding lc = {9600, 0, 0, 8};
for(int i = 0; i < 5; ++i) usart_config(i, &lc); // configure all U[S]ARTs for default data
//usb_LineCoding lc = {9600, 0, 0, 8};
//for(int i = 0; i < 5; ++i) usart_config(i, &lc); // configure all U[S]ARTs for default data
USBPU_ON();
while(1){
// Put here code working WITOUT USB connected