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:
parent
c953aa5ac8
commit
e92f5292aa
|
@ -47,7 +47,7 @@ static void rxend(SPIDriver *spip) {
|
||||||
palClearLine(LINE_LED_RED);
|
palClearLine(LINE_LED_RED);
|
||||||
chSysLockFromISR();
|
chSysLockFromISR();
|
||||||
chVTResetI(&vt3);
|
chVTResetI(&vt3);
|
||||||
chVTSetI(&vt3, TIME_MS2I(200), led3off, NULL);
|
chVTSetI(&vt3, TIME_MS2I(50), led3off, NULL);
|
||||||
chSysUnlockFromISR();
|
chSysUnlockFromISR();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -111,7 +111,7 @@ int main(void) {
|
||||||
while (true) {
|
while (true) {
|
||||||
if(!palReadPad(PIOB, PIOB_USER_PB)) {
|
if(!palReadPad(PIOB, PIOB_USER_PB)) {
|
||||||
/* SPI operation in loopback*/
|
/* SPI operation in loopback*/
|
||||||
spiExchange(&SPID1, BUFFER_SIZE, &txbuf, &rxbuf);
|
spiStartExchange(&SPID1, BUFFER_SIZE, &txbuf, &rxbuf);
|
||||||
|
|
||||||
/* D-Cache L1 is enabled */
|
/* D-Cache L1 is enabled */
|
||||||
cacheInvalidateRegion(&rxbuf, sizeof(rxbuf));
|
cacheInvalidateRegion(&rxbuf, sizeof(rxbuf));
|
||||||
|
|
Loading…
Reference in New Issue