1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2025-04-21 12:27:27 +03:00

tools/lib/: added interrupt_wait support to atusb and atusb-spi driver

- atusb-common.c (atusb_open): claim interface, so that we can do bulk
  I/O without complaints from the kernel
- atusb-common.h (atusb_interrupt_wait), atusb-common.c: blocking read
  for interrupt status byte on EP1
- atusb.c (atusb_driver), atusb-spi.c (atusb_spi_driver): provide the
  interrupt_wait operation
This commit is contained in:
Werner Almesberger
2011-06-20 16:06:51 -03:00
parent e6f0a1d410
commit 110ecf67a1
4 changed files with 71 additions and 0 deletions

View File

@@ -168,4 +168,5 @@ struct atrf_driver atusb_spi_driver = {
.sram_write = atusb_spi_sram_write,
.sram_read = atusb_spi_sram_read,
.interrupt = atusb_interrupt,
.interrupt_wait = atusb_interrupt_wait,
};