reduce s3 baudrate to prevent usb isssue, reset rp2040 usb for board test example

This commit is contained in:
hathach 2023-12-11 17:48:27 +07:00
parent 37158eddcb
commit ea885d5c83
No known key found for this signature in database
GPG Key ID: F5D50C6D51D17CBA
2 changed files with 7 additions and 1 deletions

View File

@ -166,6 +166,12 @@ void board_init(void)
#if CFG_TUH_ENABLED
// set portfunc to host !!!
#endif
#if !CFG_TUD_ENABLED && !CFG_TUH_ENABLED
// board test exxample, reset usb controller
reset_block(RESETS_RESET_USBCTRL_BITS);
unreset_block_wait(RESETS_RESET_USBCTRL_BITS);
#endif
}
//--------------------------------------------------------------------+

View File

@ -15,7 +15,7 @@
],
"flasher": "esptool",
"flasher_sn": "461cb8d7decdeb119be9b506e93fd3f1",
"flasher_args": "-b 1500000"
"flasher_args": "-b 921600"
}
]
}