mirror of
https://github.com/eddyem/stm32samples.git
synced 2026-02-28 03:44:30 +03:00
Seems like all U[S]ARTs works well. Tested on speeds up to 2Mbaud (as CH340 can).
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user