SPI: a test to verify the SPI halfduplex communicate on quad mod

This commit is contained in:
gaoxu
2022-08-23 10:47:21 +08:00
parent 3610b14aef
commit ec649b0a30
3 changed files with 157 additions and 18 deletions

View File

@@ -245,7 +245,7 @@ void get_tx_buffer(uint32_t seed, uint8_t *master_send_buf, uint8_t *slave_send_
{
srand(seed);
for (int i = 0; i < send_buf_size; i++) {
slave_send_buf[i] = rand();
master_send_buf[i] = rand();
slave_send_buf[i] = rand() % 256;
master_send_buf[i] = rand() % 256;
}
}