diff options
author | edolomb <none@example.com> | 2018-01-17 16:51:56 +0000 |
---|---|---|
committer | edolomb <none@example.com> | 2018-01-17 16:51:56 +0000 |
commit | e92f5292aa056619ebb7406236207e4958c2ae3d (patch) | |
tree | 27643bf09460a7af66f8b4f461aabee4d38a4e40 /testhal/ATSAMA5D2 | |
parent | c953aa5ac86e4f913c41333a773a0903e0860d35 (diff) | |
download | ChibiOS-e92f5292aa056619ebb7406236207e4958c2ae3d.tar.gz ChibiOS-e92f5292aa056619ebb7406236207e4958c2ae3d.tar.bz2 ChibiOS-e92f5292aa056619ebb7406236207e4958c2ae3d.zip |
Fixed bug
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11301 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/ATSAMA5D2')
-rw-r--r-- | testhal/ATSAMA5D2/SPI/main.c | 4 |
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));
|