Skip to content

Commit 47d158a

Browse files
committed
comment out errata that stm32u0 will not hit
1 parent 401bbc5 commit 47d158a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,10 +447,11 @@ void dcd_int_handler(uint8_t rhport) {
447447
*
448448
* Note: this errata may also apply to G0, U5, H5 etc.
449449
*/
450-
volatile uint32_t cycle_count = 20; // defined as PCD_RX_PMA_CNT in stm32 hal_driver
450+
// 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
451452
while (cycle_count > 0U) {
452453
cycle_count--; // each count take 3 cycles (1 for sub, jump, and compare)
453-
}
454+
} */
454455
#endif
455456

456457
if (ep_reg & USB_EP_SETUP) {

0 commit comments

Comments
 (0)