This is an automated email from the ASF dual-hosted git repository. kasjer pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
commit 5c159a27a01629ebf2baef7979eee424239e4e55 Author: Jerzy Kasenberg <[email protected]> AuthorDate: Thu Oct 15 09:02:02 2026 +0200 tinyusb/synopsys: Fix ULPI clock enable for STM32F7 ULPI clock was enabled with __HAL_RCC_USB1_OTG_HS_ULPI_CLK_ENABLE() that exists only in STM32H7 HAL. STM32F4 and STM32F7 HAL name it __HAL_RCC_USB_OTG_HS_ULPI_CLK_ENABLE(), so build with USB_USE_OTG_HS_ULPI failed for those devices. Use whichever macro is defined. Assisted-by: Claude:claude-opus-5-5 Signed-off-by: Jerzy Kasenberg <[email protected]> --- hw/usb/tinyusb/synopsys/src/synopsys.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hw/usb/tinyusb/synopsys/src/synopsys.c b/hw/usb/tinyusb/synopsys/src/synopsys.c index 6ad7bcf15..b5de86a90 100755 --- a/hw/usb/tinyusb/synopsys/src/synopsys.c +++ b/hw/usb/tinyusb/synopsys/src/synopsys.c @@ -75,7 +75,11 @@ tinyusb_hardware_init(void) hal_gpio_init_af(MCU_GPIO_PORTC(2), 10, GPIO_NOPULL, GPIO_MODE_AF_PP); hal_gpio_init_af(MCU_GPIO_PORTC(3), 10, GPIO_NOPULL, GPIO_MODE_AF_PP); +#ifdef __HAL_RCC_USB1_OTG_HS_ULPI_CLK_ENABLE __HAL_RCC_USB1_OTG_HS_ULPI_CLK_ENABLE(); +#else + __HAL_RCC_USB_OTG_HS_ULPI_CLK_ENABLE(); +#endif #else /* * USB Pin Init
