We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 401bbc5 commit 47d158aCopy full SHA for 47d158a
1 file changed
src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c
@@ -447,10 +447,11 @@ void dcd_int_handler(uint8_t rhport) {
447
*
448
* Note: this errata may also apply to G0, U5, H5 etc.
449
*/
450
- volatile uint32_t cycle_count = 20; // defined as PCD_RX_PMA_CNT in stm32 hal_driver
+ // Since the U0 only runs at up to 48-56MHz, 40-50 cycles will probably pass anyway.
451
+ /* volatile uint32_t cycle_count = 20; // defined as PCD_RX_PMA_CNT in stm32 hal_driver
452
while (cycle_count > 0U) {
453
cycle_count--; // each count take 3 cycles (1 for sub, jump, and compare)
- }
454
+ } */
455
#endif
456
457
if (ep_reg & USB_EP_SETUP) {
0 commit comments