mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2025-04-21 12:27:27 +03:00
libatrf: new function atrf_interrupt_wait for interrupt-driven wait for interrupt
- tools/lib/driver.h (struct atrf_driver): new driver operation interrupt_wait - include/atrf.h (atrf_interrupt_wait), atrf.c: new function to wait for a transceiver interrupt without polling
This commit is contained in:
@@ -323,3 +323,10 @@ int atrf_interrupt(struct atrf_dsc *dsc)
|
||||
return
|
||||
dsc->driver->interrupt ? dsc->driver->interrupt(dsc->handle) : 1;
|
||||
}
|
||||
|
||||
|
||||
int atrf_interrupt_wait(struct atrf_dsc *dsc, int timeout_ms)
|
||||
{
|
||||
return dsc->driver->interrupt_wait ?
|
||||
dsc->driver->interrupt_wait(dsc->handle, timeout_ms) : -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user