aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/SPC563Mxx/SPI/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'testhal/SPC563Mxx/SPI/main.c')
-rw-r--r--testhal/SPC563Mxx/SPI/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/testhal/SPC563Mxx/SPI/main.c b/testhal/SPC563Mxx/SPI/main.c
index 9ddb9761a..23ccd435a 100644
--- a/testhal/SPC563Mxx/SPI/main.c
+++ b/testhal/SPC563Mxx/SPI/main.c
@@ -119,6 +119,10 @@ int main(void) {
for (i = 0; i < sizeof(txbuf); i++)
txbuf[i] = (uint8_t)i;
+ spiStart(&SPID2, &hs_spicfg); /* Setup transfer parameters. */
+ spiExchange(&SPID2, 512,
+ txbuf, rxbuf); /* Atomic transfer operations. */
+
/*
* Starting the transmitter and receiver threads.
*/