mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2025-04-21 12:27:27 +03:00
tools/: added interrupt_wait support to atnet and atrf-proxy (untested)
- atrf-proxy/PROTOCOL: WAIT is now implemented and takes a timeout argument - atrf-proxy/atrf-proxy.c (cmd_more): implemented WAIT command using atrf_interrupt_wait - lib/atnet.c (atnet_interrupt_wait, atnet_driver): added interrupt_wait (using WAIT)
This commit is contained in:
@@ -168,6 +168,18 @@ static int cmd_more(struct atrf_dsc *dsc, struct netio *netio, const char *cmd)
|
||||
return netio_printf(netio, "-I/O error\n");
|
||||
return netio_printf(netio, "+0x%02x\n", res);
|
||||
}
|
||||
if (!strcasecmp(cmd, "wait")) {
|
||||
uint8_t res;
|
||||
|
||||
if (!n)
|
||||
n = 1;
|
||||
res = atrf_interrupt_wait(dsc, n);
|
||||
if (atrf_error(dsc))
|
||||
return netio_printf(netio, "-I/O error\n");
|
||||
if (res < 0)
|
||||
return netio_printf(netio, "-not supported\n");
|
||||
return netio_printf(netio, "+0x%02x\n", res);
|
||||
}
|
||||
if (!strcasecmp(cmd, "getram")) {
|
||||
uint8_t res;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user