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:
@@ -34,6 +34,8 @@ void atusb_reset_rf(void *handle);
|
||||
void atusb_test_mode(void *handle);
|
||||
void atusb_slp_tr(void *handle, int on, int pulse);
|
||||
int atusb_interrupt(void *handle);
|
||||
int atusb_interrupt_wait(void *handle, int timeout_ms);
|
||||
|
||||
int atusb_set_clkm(void *handle, int mhz);
|
||||
|
||||
#endif /* !ATUSB_COMMON_H */
|
||||
|
||||
Reference in New Issue
Block a user