Skip to content

Commit ed74f65

Browse files
committed
Increase buffers
1 parent 9c0b84b commit ed74f65

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,13 @@ macro(HyperSerialPicoTarget HyperSerialPicoTargetName)
128128
if (BOOT_WORKAROUND)
129129
target_compile_definitions(${HyperSerialPicoTargetName} PUBLIC -DBOOT_WORKAROUND -DPICO_XOSC_STARTUP_DELAY_MULTIPLIER=64)
130130
endif()
131+
132+
target_compile_definitions(${HyperSerialPicoTargetName} PRIVATE
133+
CFG_TUD_CDC_RX_BUFSIZE=8192
134+
CFG_TUD_CDC_EP_BUFSIZE=2048
135+
CFG_TUD_CDC_TX_BUFSIZE=512
136+
)
137+
131138
target_include_directories(${HyperSerialPicoTargetName} PRIVATE ${HyperSerialPicoCompanionIncludes})
132139
target_link_libraries(${HyperSerialPicoTargetName} ${HyperSerialPicoCompanionLibs})
133140
pico_add_extra_outputs(${HyperSerialPicoTargetName})

source/main.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,10 @@
126126
#define yield() busy_wait_us(100)
127127
#define millis xTaskGetTickCount
128128

129+
#if !defined(SIO_IRQ_FIFO) && defined(PICO_RP2040)
130+
#define SIO_IRQ_FIFO SIO_IRQ_PROC0
131+
#endif
132+
129133
#include "main.h"
130134

131135
static void core1()
@@ -160,7 +164,7 @@ static void core0( void *pvParameters )
160164
{
161165
statistics.printToSerial(base.processDataHandle, base.processSerialHandle);
162166
stdio_flush();
163-
vTaskDelay(pdMS_TO_TICKS(2));
167+
vTaskDelay(pdMS_TO_TICKS(5));
164168
}
165169

166170
sem_release(&base.serialSemaphore);

0 commit comments

Comments
 (0)