aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testhal/ATSAMA5D2/SPI/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/testhal/ATSAMA5D2/SPI/main.c b/testhal/ATSAMA5D2/SPI/main.c
index ed1fd8d89..c88f2a8d4 100644
--- a/testhal/ATSAMA5D2/SPI/main.c
+++ b/testhal/ATSAMA5D2/SPI/main.c
@@ -47,7 +47,7 @@ static void rxend(SPIDriver *spip) {
palClearLine(LINE_LED_RED);
chSysLockFromISR();
chVTResetI(&vt3);
- chVTSetI(&vt3, TIME_MS2I(200), led3off, NULL);
+ chVTSetI(&vt3, TIME_MS2I(50), led3off, NULL);
chSysUnlockFromISR();
}
@@ -111,7 +111,7 @@ int main(void) {
while (true) {
if(!palReadPad(PIOB, PIOB_USER_PB)) {
/* SPI operation in loopback*/
- spiExchange(&SPID1, BUFFER_SIZE, &txbuf, &rxbuf);
+ spiStartExchange(&SPID1, BUFFER_SIZE, &txbuf, &rxbuf);
/* D-Cache L1 is enabled */
cacheInvalidateRegion(&rxbuf, sizeof(rxbuf));