Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvements in Wire Protocol responsivness #536

Merged
merged 1 commit into from
Nov 2, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions targets/CMSIS-OS/ChibiOS/common/WireProtocol_HAL_Interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ bool WP_ReceiveBytes(uint8_t* ptr, uint16_t* size)
if(semaphoreResult == MSG_OK)
{
// read from serial stream
volatile size_t read = chnReadTimeout(&SDU1, ptr, *size, MS2ST(100));
volatile size_t read = chnReadTimeout(&SDU1, ptr, *size, MS2ST(250));

ptr += read;
*size -= read;
Expand Down Expand Up @@ -95,7 +95,7 @@ bool WP_ReceiveBytes(uint8_t* ptr, uint16_t* size)
{

// non blocking read from serial port with 100ms timeout
volatile size_t read = sdReadTimeout(&SD2, ptr, *size, MS2ST(100));
volatile size_t read = sdReadTimeout(&SD2, ptr, *size, MS2ST(250));

ptr += read;
*size -= read;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ void ReceiverThread(void const * argument)
WP_Message_Process(&inboundMessage);

// delay here to give other threads a chance to run
osDelay(500);
osDelay(100);
}

// nothing to deinitialize or cleanup, so it's safe to return
Expand Down