HAL_ChibiOS: allow more OTG defines to be overridden

This commit is contained in:
Andrew Tridgell 2018-01-27 13:32:49 +11:00
parent 33a87194dc
commit 713006bb1d

View File

@ -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.