cc2520: Flushing RX FIFO is done through one SFLUSHRX instruction
Removing unnecessary legacy logic. Change-Id: I658e126d90e7f6151b77089a10b98c9071b6abd2 Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
parent
fd3adeaabe
commit
6f95960c2c
1 changed files with 0 additions and 13 deletions
|
@ -332,20 +332,7 @@ static inline int cc2520_pending_packet(void)
|
|||
|
||||
static void flushrx(void)
|
||||
{
|
||||
uint8_t dummy;
|
||||
|
||||
cc2520_read_fifo_byte(&dummy);
|
||||
dummy++;
|
||||
|
||||
cc2520_strobe(CC2520_INS_SFLUSHRX);
|
||||
cc2520_strobe(CC2520_INS_SFLUSHRX);
|
||||
|
||||
#if 0
|
||||
/* SFLUSHRX causes recalibration so wait small delay after
|
||||
* it before continuing. Errata chapter 1.3
|
||||
*/
|
||||
clock_delay_usec_busywait(500);
|
||||
#endif
|
||||
}
|
||||
|
||||
static void on(void)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue