From 3332b747dbd07303161eb15aec1f27ff0dcb3655 Mon Sep 17 00:00:00 2001 From: cfif Date: Tue, 9 Dec 2025 13:08:53 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SerialPorts.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/SerialPorts.c b/SerialPorts.c index 8a04a9c..d170873 100644 --- a/SerialPorts.c +++ b/SerialPorts.c @@ -7,6 +7,7 @@ tSerialPorts SERIAL_PORTS; +uint8_t buf_USART2_TRANSMITTED[512]; uint8_t buf_USART2_DMA[256]; @@ -99,6 +100,9 @@ static void vSerialPort_InitUSART2(tSerialPortFlagchip *env) { FCUART2_IRQn, // FCUART0_IRQn ... FCUART7_IRQn 0xFF, + buf_USART2_TRANSMITTED, + sizeof(buf_USART2_TRANSMITTED), + DMA_CHANNEL_0, DMA_REQ_FCUART2_RX, @@ -136,7 +140,7 @@ void SerialPorts_Init() { SERIAL_PORTS.SerialPortLog_IO = vSerialPortGetIo(&env->SerialPortLog); //// Виртуальный сериал порт - SerialPortP2p_Init(&env->cliVirtualPort, 3 * 1024, 1024); + SerialPortP2p_Init(&env->cliVirtualPort, 4 * 1024, 1024); env->cliVirtualInIo = SerialPortP2p_GetIoFirst(&env->cliVirtualPort); env->cliVirtualOutIo = SerialPortP2p_GetIoSecond(&env->cliVirtualPort);