various speed-ups in TF_WriteImpl and elsewhere

This commit is contained in:
2018-03-05 11:38:25 +01:00
parent 5687196bdd
commit 3654bf2206
7 changed files with 42 additions and 45 deletions
+2 -1
View File
@@ -40,7 +40,8 @@ static void UADC_JobSendBlockChunk(Job *job)
.len = (TF_LEN) (1 /*seq*/ + count * sizeof(uint16_t)),
.type = type,
};
TF_Respond_Multipart(comm, &msg);
assert_param(true == TF_Respond_Multipart(comm, &msg));
TF_Multipart_Payload(comm, &priv->stream_serial, 1);
TF_Multipart_Payload(comm, (uint8_t *) (priv->dma_buffer + start), count * sizeof(uint16_t));
TF_Multipart_Close(comm);