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:
@@ -196,8 +196,6 @@ static int cmd_more(struct atrf_dsc *dsc, struct netio *netio, const char *cmd)
|
||||
|
||||
static int cmd_zero(struct atrf_dsc *dsc, struct netio *netio, const char *cmd)
|
||||
{
|
||||
int res;
|
||||
|
||||
if (!strcasecmp(cmd, "spec")) {
|
||||
const char *spec = atrf_driver_spec(dsc, 1);
|
||||
|
||||
@@ -231,14 +229,6 @@ static int cmd_zero(struct atrf_dsc *dsc, struct netio *netio, const char *cmd)
|
||||
buf[got] = '\n';
|
||||
return netio_write(netio, buf, got+1);
|
||||
}
|
||||
if (!strcasecmp(cmd, "poll")) {
|
||||
res = atrf_interrupt(dsc);
|
||||
if (res < 0)
|
||||
return netio_printf(netio, "-I/O error\n");
|
||||
if (!res)
|
||||
usleep(2*1000);
|
||||
return netio_printf(netio, "+%d\n", res);
|
||||
}
|
||||
return netio_printf(netio, "-unrecognized command\n");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user