WIP
This commit is contained in:
parent
ee09dcef00
commit
83f510bb59
13 changed files with 213 additions and 64 deletions
|
@ -78,8 +78,10 @@ void MainLoop()
|
|||
|
||||
for(uint16_t idx = 0; idx < sizeof(g_uartStatuses) / sizeof(g_uartStatuses[0]); ++idx) {
|
||||
if(!g_uartStatuses[idx].txBuffer.busy && send) {
|
||||
uint16_t len = sizeof(text2Send) - 1 - (rand() & randmask);
|
||||
DIAG_ENTER_BUSY();
|
||||
PostPacket(&g_uartStatuses[idx], text2Send, sizeof(text2Send) - 1 - (rand() & randmask), &g_crcStatus, 1);
|
||||
MemcpyDma(GetTxBuffer(&g_uartStatuses[idx]), text2Send, len);
|
||||
PostPacket(&g_uartStatuses[idx], NULL, len, &g_crcStatus, 1);
|
||||
DIAG_EXIT_BUSY();
|
||||
}
|
||||
for(uint16_t rIdx = 0; rIdx < 2; ++rIdx)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue