summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorcopilot-swe-agent[bot] <[email protected]>2026-04-10 11:11:31 +0000
committerGitHub <[email protected]>2026-04-10 11:11:31 +0000
commit37ace45508fb32568e78ba3410d708db359a46d4 (patch)
treec3150508acf8ab793cd9daafb2acaa8ced3710cc /src
parent54e1973906c6152ffd5d650d4f8fb146b4fa9068 (diff)
Allow STM32 FSDEV delay override macros to satisfy 32-bit guard
Agent-Logs-Url: https://github.com/hathach/tinyusb/sessions/b35badc2-444a-4329-b136-f314591cf693 Co-authored-by: HiFiPhile <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/portable/st/stm32_fsdev/fsdev_stm32.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/portable/st/stm32_fsdev/fsdev_stm32.h b/src/portable/st/stm32_fsdev/fsdev_stm32.h
index 5e383eb97..d2a7a6caa 100644
--- a/src/portable/st/stm32_fsdev/fsdev_stm32.h
+++ b/src/portable/st/stm32_fsdev/fsdev_stm32.h
@@ -152,8 +152,9 @@
#define FSDEV_STM32_CPU_MHZ 64U
#elif CFG_TUSB_MCU == OPT_MCU_STM32C0
#define FSDEV_STM32_CPU_MHZ 48U
- #elif defined(CFG_TUSB_FSDEV_32BIT)
- #error "FSDEV_STM32_CPU_MHZ not defined for this STM32 MCU"
+ #elif defined(CFG_TUSB_FSDEV_32BIT) && \
+ (!defined(CFG_TUSB_FSDEV_BTABLE_FS_DELAY_COUNT) || !defined(CFG_TUSB_FSDEV_BTABLE_LS_DELAY_COUNT))
+ #error "Define FSDEV_STM32_CPU_MHZ or both CFG_TUSB_FSDEV_BTABLE_{FS,LS}_DELAY_COUNT for this STM32 MCU"
#endif
#endif