summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorcopilot-swe-agent[bot] <[email protected]>2026-04-09 10:39:02 +0000
committerGitHub <[email protected]>2026-04-09 10:39:02 +0000
commitb2c36e0000b48f05e161f76fa880b810cf9405b4 (patch)
tree8691233ff5ce5e2a1eb200827f091cec1bff0883 /src
parent9e8b96f55b2990ad5f3020efec2bd4337a6b4660 (diff)
Document and polish shared FSDEV errata delay helper
Agent-Logs-Url: https://github.com/hathach/tinyusb/sessions/3ec0d5b6-cb8e-48ff-8606-3371beb1efcb Co-authored-by: HiFiPhile <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/portable/st/stm32_fsdev/fsdev_common.c2
-rw-r--r--src/portable/st/stm32_fsdev/fsdev_common.h3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/portable/st/stm32_fsdev/fsdev_common.c b/src/portable/st/stm32_fsdev/fsdev_common.c
index 3f3973a9d..4b7c1ad5f 100644
--- a/src/portable/st/stm32_fsdev/fsdev_common.c
+++ b/src/portable/st/stm32_fsdev/fsdev_common.c
@@ -123,7 +123,7 @@ void fsdev_btable_workaround_delay(bool low_speed) {
uint32_t cycle_count = low_speed ? CFG_TUSB_FSDEV_BTABLE_LS_DELAY_COUNT : CFG_TUSB_FSDEV_BTABLE_FS_DELAY_COUNT;
volatile uint32_t delay_count = cycle_count;
while (delay_count > 0U) {
- delay_count--; // each count take 3 cycles (1 for sub, jump, and compare)
+ delay_count--; // each count takes 3 cycles (1 for sub, jump, and compare)
}
#else
(void) low_speed;
diff --git a/src/portable/st/stm32_fsdev/fsdev_common.h b/src/portable/st/stm32_fsdev/fsdev_common.h
index bf4941794..2da80fd73 100644
--- a/src/portable/st/stm32_fsdev/fsdev_common.h
+++ b/src/portable/st/stm32_fsdev/fsdev_common.h
@@ -469,7 +469,8 @@ uint16_t pma_align_buffer_size(uint16_t size, uint8_t *blsize, uint8_t *num_bloc
// Set RX buffer size
void btable_set_rx_bufsize(uint32_t ep_id, uint8_t buf_id, uint16_t wCount);
-// STM32 FSDEV PMA Buffer Description Table errata workaround delay.
+// Delay helper for STM32 FSDEV PMA Buffer Description Table errata (ES0561/ES0587).
+// Low-speed path uses CFG_TUSB_FSDEV_BTABLE_LS_DELAY_COUNT, otherwise full-speed count.
void fsdev_btable_workaround_delay(bool low_speed);
#ifdef __cplusplus