IEEE 802.15.4 subsystem
Sign in or create your account | Project List | Help
IEEE 802.15.4 subsystem Commit Details
Date: | 2011-01-19 21:43:01 (13 years 2 months ago) |
---|---|
Author: | Werner Almesberger |
Commit: | 1fb05c221dcff657e49cc766e8ff7baa1d3434fc |
Message: | misctxrx.c (wait_for_interrupt): let "ignore" control
printing more tightly When some interrupt(s) happened but the one(s) wait_for_interrupt was waiting for weren't among them, it printed the list of interrupts even if they were all in "ignore". This made sequences like RX_START followed by TRX_END unnecessarily noisy. Now, wait_for_interrupt only prints the pending interrupts if at least one of them is not in "ignore". |
Files: |
tools/lib/misctxrx.c (1 diff) |
Change Details
tools/lib/misctxrx.c | ||
---|---|---|
53 | 53 | if (!irq) |
54 | 54 | continue; |
55 | 55 | show = irq & ~ignore; |
56 | if ((irq & wait_for) && !show) | |
57 | break; | |
56 | if (!show) { | |
57 | if (irq & wait_for) | |
58 | break; | |
59 | continue; | |
60 | } | |
58 | 61 | fprintf(stderr, "IRQ (0x%02x):", irq); |
59 | 62 | if (irq & IRQ_PLL_LOCK) |
60 | 63 | fprintf(stderr, " PLL_LOCK"); |