IEEE 802.15.4 subsystem
Sign in or create your account | Project List | Help
IEEE 802.15.4 subsystem Commit Details
Date: | 2011-06-21 01:48:15 (12 years 9 months ago) |
---|---|
Author: | Werner Almesberger |
Commit: | 76707d6b378a70fe4fb33d9d3a5e39bfa2fcb1ca |
Message: | tools/lib/misctxrx.c (flush_interrupts): don't fall back to reading
IRQ_STATUS We now implement atrf_interrupt_wait in all drivers and don't need the dubious fallback anymore. |
Files: |
tools/lib/misctxrx.c (1 diff) |
Change Details
tools/lib/misctxrx.c | ||
---|---|---|
41 | 41 | |
42 | 42 | void flush_interrupts(struct atrf_dsc *dsc) |
43 | 43 | { |
44 | /* | |
45 | * If the driver doesn't support atrf_interrupt_wait, we use | |
46 | * atrf_reg_read. | |
47 | */ | |
48 | if (atrf_interrupt_wait(dsc, 1) < 0) | |
49 | atrf_reg_read(dsc, REG_IRQ_STATUS); | |
44 | int res; | |
45 | ||
46 | res = atrf_interrupt_wait(dsc, 1); | |
47 | if (res < 0) { | |
48 | fprintf(stderr, "atrf_interrupt_wait returns %d\n", res); | |
49 | exit(1); | |
50 | } | |
50 | 51 | } |
51 | 52 | |
52 | 53 |