Closed str4t0m closed 3 years ago
Hi @str4t0m,
Thank you for your contribution. Indeed, USB DRD-related definitions and declarations should be surrounded by pre-processor directives #if defined (USB_DRD_FS)
and #endif
. The directives should be added at lines 31 and 490 respectively (shown below).
The issue will be logged into our internal database. A fix will be made available in the frame of a future release.
With regards,
ST Internal Reference: 99814
Describe the bug The content of stm32g0xx_hal_hcd.h should be only included for devices where the USB peripheral is available.
How To Reproduce
Expectation File content is included only if the peripheral USB_DRD_FS is defined:
Additional context I am currently trying to update the HAL for STM32G0 Series for Zephyr to Version 1.4.0. In Zephyr all HAL_PERIPHERALXX_ENABLED are defined in stm32g0xx_hal_conf.h, therefore all devices from the STM32G0 Series missing the USB peripheral can't compile when this include guard is missing.