mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2025-04-21 12:27:27 +03:00
tools/: the great removal of atrf_interrupt
- atrf-proxy/PROTOCOL, atrf-proxy/atrf-proxy.c (cmd_zero): removed the POLL command - lib/atben.c (atben_driver): don't export atben_interrupt anymore (we still use it internally) - lib/atnet.c (atnet_interrupt, atnet_driver): removed atnet_interrupt - lib/atusb-common.h (atusb_interrupt), lib/atusb-common.h (atusb_interrupt), lib/atusb-spi.c (atusb_spi_driver), lib/atusb.c (atusb_driver): removed atusb_interrupt - lib/driver.h (struct atrf_driver): removed "interrupt" - include/atrf.h (atrf_interrupt), lib/atrf.c (atrf_interrupt): removed
This commit is contained in:
@@ -174,27 +174,6 @@ void atusb_slp_tr(void *handle, int on, int pulse)
|
||||
/* ----- RF interrupt ------------------------------------------------------ */
|
||||
|
||||
|
||||
int atusb_interrupt(void *handle)
|
||||
{
|
||||
struct atusb_dsc *dsc = handle;
|
||||
uint8_t buf;
|
||||
int res;
|
||||
|
||||
if (dsc->error)
|
||||
return -1;
|
||||
|
||||
res = usb_control_msg(dsc->dev, FROM_DEV, ATUSB_POLL_INT, 0, 0,
|
||||
(void *) &buf, 1, 1000);
|
||||
if (res < 0) {
|
||||
fprintf(stderr, "ATUSB_POLL_INT: %d\n", res);
|
||||
dsc->error = 1;
|
||||
return -1;
|
||||
}
|
||||
|
||||
return buf;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* The logic here is a bit tricky. Assuming that we can get a lot of
|
||||
* interrupts, system state can change as follows:
|
||||
|
||||
Reference in New Issue
Block a user