Fixed bug

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11301 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
edolomb 2018-01-17 16:51:56 +00:00
parent c953aa5ac8
commit e92f5292aa
1 changed files with 2 additions and 2 deletions

View File

@ -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));