Date:2011-01-09 23:32:05 (13 years 2 months ago)
Author:Werner Almesberger
Commit:0c7146cad964108a696cc32d742a80ed1f62d0d0
Message:atrf-txrx: updated for AT86RF231 interrupt handling

- atrf-txrx.c (init_txrx): unmask all interrupts for 231 compatibilit,
where masked interrupts are now indicated in IRQ_STATUS
- atrf-txrx.c (init_txrx): on the 231, wait for (and clear) the CCA_ED_DONE
interrupt when entering TRX_OFF after reset
Files: tools/atrf-txrx/atrf-txrx.c (1 diff)

Change Details

tools/atrf-txrx/atrf-txrx.c
7878#endif
7979    atrf_reg_write(dsc, REG_TRX_CTRL_0, 0); /* disable CLKM */
8080
81    /* We want to see all interrupts, not only the ones we're expecting. */
82    atrf_reg_write(dsc, REG_IRQ_MASK, 0xff);
83
8184    (void) atrf_reg_read(dsc, REG_IRQ_STATUS);
85    if (atrf_identify(dsc) == artf_at86rf231)
86        wait_for_interrupt(dsc, IRQ_CCA_ED_DONE, IRQ_CCA_ED_DONE,
87            10, 50); /* according to table 7-1, 37 us max */
8288
8389    return dsc;
8490}

Archive Download the corresponding diff file



interactive