ChibiOS / ChibiOS-Contrib

Community contributed code (ports, drivers, etc).
130 stars 226 forks source link

Add missing define to hal_usbh_lld #384

Closed josesimoes closed 11 months ago

josesimoes commented 11 months ago

Without this define here, when setting

#define STM32_USBH_USE_OTG2 TRUE

the build will fail with:

ChibiOS-Contrib/os/hal/ports/STM32/LLD/USBHv1/hal_usbh_lld.c:1611:6: error: "STM32_OTG1_USE_ULPI" is not defined, evaluates to 0 [-Werror=undef]
[build]  1611 | #if !STM32_OTG1_USE_ULPI && !STM32_OTG2_USE_ULPI
[build]       |      ^~~~~~~~~~~~~~~~~~~

Because STM32_OTG1_USE_ULPI is not defined (this is withe the build option to treat warnings as errors).

josesimoes commented 11 months ago

Can anyone take a look at this please?

fpoussin commented 11 months ago

Thank you!