Skip to content

Commit 37ace45

Browse files
CopilotHiFiPhile
andauthored
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 <4375114+HiFiPhile@users.noreply.github.com>
1 parent 54e1973 commit 37ace45

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/portable/st/stm32_fsdev/fsdev_stm32.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,9 @@
152152
#define FSDEV_STM32_CPU_MHZ 64U
153153
#elif CFG_TUSB_MCU == OPT_MCU_STM32C0
154154
#define FSDEV_STM32_CPU_MHZ 48U
155-
#elif defined(CFG_TUSB_FSDEV_32BIT)
156-
#error "FSDEV_STM32_CPU_MHZ not defined for this STM32 MCU"
155+
#elif defined(CFG_TUSB_FSDEV_32BIT) && \
156+
(!defined(CFG_TUSB_FSDEV_BTABLE_FS_DELAY_COUNT) || !defined(CFG_TUSB_FSDEV_BTABLE_LS_DELAY_COUNT))
157+
#error "Define FSDEV_STM32_CPU_MHZ or both CFG_TUSB_FSDEV_BTABLE_{FS,LS}_DELAY_COUNT for this STM32 MCU"
157158
#endif
158159
#endif
159160

0 commit comments

Comments
 (0)