UP Task,Argpase

This commit is contained in:
JiXieShi
2024-05-20 21:53:19 +08:00
parent be1d31e732
commit 8c05281f26
20 changed files with 207 additions and 60 deletions

View File

@@ -50,13 +50,13 @@ void Test_spi() {
tbuf[i] = rand() % 10;
}
SW_SPI_RWL(ltl, rbuf, tbuf, 64);
BufPrint("<SPI> TX", tbuf, 8, 64, 8);
BufPrint("<SPI> RX", rbuf, 8, 64, 8);
BufPrint("<SPI> TX", tbuf, TYPE_T(tbuf), 64, 8);
BufPrint("<SPI> RX", rbuf, TYPE_T(rbuf), 64, 8);
uint16_t rbuf16[64], tbuf16[64];
for (int i = 0; i < 64; ++i) {
tbuf16[i] = rand() % 1000;
}
SW_SPI_RWL16(ltl, rbuf16, tbuf16, 64);
BufPrint("<SPI> TX[16]", tbuf16, 16, 64, 16);
BufPrint("<SPI> RX[16]", rbuf16, 16, 64, 16);
BufPrint("<SPI> TX[16]", tbuf16, TYPE_T(tbuf16), 64, 16);
BufPrint("<SPI> RX[16]", rbuf16, TYPE_T(rbuf16), 64, 16);
}