diff --git a/libraries/AP_HAL_ChibiOS/hwdef/common/mcuconf.h b/libraries/AP_HAL_ChibiOS/hwdef/common/mcuconf.h index cd051da008..6f9e6e7e8d 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/common/mcuconf.h +++ b/libraries/AP_HAL_ChibiOS/hwdef/common/mcuconf.h @@ -355,13 +355,27 @@ /* * USB driver system settings. */ +#ifndef STM32_USB_OTG1_IRQ_PRIORITY #define STM32_USB_OTG1_IRQ_PRIORITY 14 +#endif +#ifndef STM32_USB_OTG2_IRQ_PRIORITY #define STM32_USB_OTG2_IRQ_PRIORITY 14 +#endif +#ifndef STM32_USB_OTG1_RX_FIFO_SIZE #define STM32_USB_OTG1_RX_FIFO_SIZE 512 +#endif +#ifndef STM32_USB_OTG2_RX_FIFO_SIZE #define STM32_USB_OTG2_RX_FIFO_SIZE 1024 +#endif +#ifndef STM32_USB_OTG_THREAD_PRIO #define STM32_USB_OTG_THREAD_PRIO LOWPRIO +#endif +#ifndef STM32_USB_OTG_THREAD_STACK_SIZE #define STM32_USB_OTG_THREAD_STACK_SIZE 128 +#endif +#ifndef STM32_USB_OTGFIFO_FILL_BASEPRI #define STM32_USB_OTGFIFO_FILL_BASEPRI 0 +#endif /* * WDG driver system settings.