diff --git a/firmware/hw_layer/ports/at32/at32f4/cfg/mcuconf.h b/firmware/hw_layer/ports/at32/at32f4/cfg/mcuconf.h index fe0b024eb2..0d11906830 100644 --- a/firmware/hw_layer/ports/at32/at32f4/cfg/mcuconf.h +++ b/firmware/hw_layer/ports/at32/at32f4/cfg/mcuconf.h @@ -405,8 +405,12 @@ /* * USB driver system settings. */ +#ifndef STM32_USB_USE_OTG1 #define STM32_USB_USE_OTG1 TRUE +#endif /* STM32_USB_USE_OTG1 */ +#ifndef STM32_USB_USE_OTG2 #define STM32_USB_USE_OTG2 TRUE +#endif /* STM32_USB_USE_OTG2 */ #define STM32_USB_OTG1_IRQ_PRIORITY 14 #define STM32_USB_OTG2_IRQ_PRIORITY 14 #define STM32_USB_OTG1_RX_FIFO_SIZE 512