HAL_ChibiOS: use more USB buffers on higher end F7 chips

This commit is contained in:
Andrew Tridgell 2021-08-30 16:57:48 +10:00
parent 991352b76b
commit 1b398d6956
1 changed files with 2 additions and 1 deletions

View File

@ -458,7 +458,8 @@
* @note The default is 2 buffers.
*/
#if !defined(SERIAL_USB_BUFFERS_NUMBER) || defined(__DOXYGEN__)
#if defined(STM32H7)
// more USB buffers works well on H7 and higher end F7
#if defined(STM32H7) || (defined(STM32F7) && HAL_MEMORY_TOTAL_KB>=512)
#define SERIAL_USB_BUFFERS_NUMBER 4
#else
#define SERIAL_USB_BUFFERS_NUMBER 2