1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #1388 from rousselk/fix-z1-cc2420-txrx

boards/z1: fix cc2420_txrx function in CC2420 driver HAL
This commit is contained in:
Kévin Roussel 2014-07-09 09:17:59 +02:00
commit 8cc7bd2da8

View File

@ -168,7 +168,7 @@ uint8_t cc2420_txrx(uint8_t data)
if (count >= MAX_SPI_WAIT) {
core_panic(0x2420, "cc2420_txrx(): couldn't send byte!");
}
} while(!(UCB0STAT & UCBUSY));
} while (UCB0STAT & UCBUSY);
/* Read the byte that CC2420 has (normally, during TX) returned */
count = 0;
do {
@ -176,7 +176,7 @@ uint8_t cc2420_txrx(uint8_t data)
if (count >= MAX_SPI_WAIT) {
core_panic(0x2420, "cc2420_txrx(): couldn't receive byte!");
}
} while(!(IFG2 & UCB0RXIFG));
} while (!(IFG2 & UCB0RXIFG));
/* Return received byte */
return UCB0RXBUF;
}