From e92f5292aa056619ebb7406236207e4958c2ae3d Mon Sep 17 00:00:00 2001 From: edolomb Date: Wed, 17 Jan 2018 16:51:56 +0000 Subject: [PATCH] Fixed bug git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11301 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- testhal/ATSAMA5D2/SPI/main.c | 4 ++-- 1 file 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));