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:
Andrey G 2024-11-04 01:22:17 +03:00 committed by GitHub
parent 1fcf3343c9
commit d9dcc40a54
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 20 additions and 7 deletions

@ -1 +1 @@
Subproject commit 4a2dcaa2fa18ad16207d496dbfcdbf85ec70c2e8
Subproject commit 900fa76da45c0006f96f7d7640379b61bb6f7a4a

View File

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

View File

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