6595 burn failed (#7031)
* halconf: SERIAL_USB_BUFFERS_RX_SIZE should be 64 Until we fix bug in OTGv1 * ChibiOS: update OTGv1 * usb_console: fix SERIAL_USB_BUFFERS_TX_SIZE vs BLOCKING_FACTOR check Actually should be removed as we can write to USB serial more than can fit into buffer. Write caller will be just waiting for space available in buffer.
This commit is contained in:
parent
1fcf3343c9
commit
d9dcc40a54
|
@ -1 +1 @@
|
|||
Subproject commit 4a2dcaa2fa18ad16207d496dbfcdbf85ec70c2e8
|
||||
Subproject commit 900fa76da45c0006f96f7d7640379b61bb6f7a4a
|
|
@ -7,8 +7,9 @@
|
|||
#include "tunerstudio.h"
|
||||
|
||||
|
||||
// Assert that the USB tx/rx buffers are large enough to fit one full packet
|
||||
static_assert(SERIAL_USB_BUFFERS_SIZE >= BLOCKING_FACTOR + 10);
|
||||
// TODO: remove someday
|
||||
// Assert that the USB TX buffers are large enough to fit one full packet
|
||||
static_assert(SERIAL_USB_BUFFERS_TX_SIZE >= BLOCKING_FACTOR + 10);
|
||||
|
||||
extern SerialUSBDriver EFI_CONSOLE_USB_DEVICE;
|
||||
|
||||
|
|
|
@ -167,12 +167,24 @@
|
|||
#define PAL_USE_CALLBACKS TRUE
|
||||
|
||||
// USB Serial
|
||||
#ifndef SERIAL_USB_BUFFERS_SIZE
|
||||
#define SERIAL_USB_BUFFERS_SIZE 768
|
||||
#ifndef SERIAL_USB_BUFFERS_RX_SIZE
|
||||
#define SERIAL_USB_BUFFERS_RX_SIZE 64
|
||||
#endif
|
||||
|
||||
#ifndef SERIAL_USB_BUFFERS_NUMBER
|
||||
#define SERIAL_USB_BUFFERS_NUMBER 2
|
||||
#if (SERIAL_USB_BUFFERS_RX_SIZE != 64)
|
||||
#error Please keep SERIAL_USB_BUFFERS_SIZE until https://forum.chibios.org/viewtopic.php?f=35&t=6395 is properly fixed!
|
||||
#endif
|
||||
|
||||
#ifndef SERIAL_USB_BUFFERS_RX_NUMBER
|
||||
#define SERIAL_USB_BUFFERS_RX_NUMBER 2
|
||||
#endif
|
||||
|
||||
#ifndef SERIAL_USB_BUFFERS_TX_SIZE
|
||||
#define SERIAL_USB_BUFFERS_TX_SIZE 1024
|
||||
#endif
|
||||
|
||||
#ifndef SERIAL_USB_BUFFERS_TX_NUMBER
|
||||
#define SERIAL_USB_BUFFERS_TX_NUMBER 2
|
||||
#endif
|
||||
|
||||
// USB Mass Storage
|
||||
|
|
Loading…
Reference in New Issue