Solved issue with CC2520_READ_REG macro to read correct value of register.
This commit is contained in:
parent
6ac939bc58
commit
27dd3f493b
|
@ -118,6 +118,7 @@ void cc2520_set_cca_threshold(int value);
|
||||||
CC2520_SPI_ENABLE(); \
|
CC2520_SPI_ENABLE(); \
|
||||||
SPI_WRITE((CC2520_INS_MEMRD | ((adr>>8)&0xFF))); \
|
SPI_WRITE((CC2520_INS_MEMRD | ((adr>>8)&0xFF))); \
|
||||||
SPI_WRITE((adr & 0xFF)); \
|
SPI_WRITE((adr & 0xFF)); \
|
||||||
|
(void)SPI_RXBUF; \
|
||||||
SPI_READ(data); \
|
SPI_READ(data); \
|
||||||
CC2520_SPI_DISABLE(); \
|
CC2520_SPI_DISABLE(); \
|
||||||
} while(0)
|
} while(0)
|
||||||
|
|
Loading…
Reference in a new issue