mirror of https://github.com/ArduPilot/ardupilot
HAL_ChibiOS: use more USB buffers on higher end F7 chips
This commit is contained in:
parent
a48f0ef90d
commit
78ca572634
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue