IEEE 802.15.4 subsystem
Sign in or create your account | Project List | Help
IEEE 802.15.4 subsystem Commit Details
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 | ||
---|---|---|
78 | 78 | #endif |
79 | 79 | atrf_reg_write(dsc, REG_TRX_CTRL_0, 0); /* disable CLKM */ |
80 | 80 | |
81 | /* We want to see all interrupts, not only the ones we're expecting. */ | |
82 | atrf_reg_write(dsc, REG_IRQ_MASK, 0xff); | |
83 | ||
81 | 84 | (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 */ | |
82 | 88 | |
83 | 89 | return dsc; |
84 | 90 | } |