Werner Almesberger
10b6d88af9
libatrf: simplify use of atrf_interrupt_wait now this it is mandatory
...
- lib/atrf.c (atrf_interrupt_wait): interrupt_wait is no longer
optional
- atrf-proxy/atrf-proxy.c (cmd_more): we no longer need to handle
atrf_interrupt_wait being unsupported
- lib/atusb-common.c (atusb_interrupt_wait): clarify what we don't
want to return -1 on error
2011-06-20 21:14:14 -03:00
Werner Almesberger
d0fb1a8992
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
2011-06-20 21:10:41 -03:00
Werner Almesberger
106ef7ff7f
tools/atrf-xmit/atrf-xmit.c: corrected title comment
2011-06-20 18:22:29 -03:00
Werner Almesberger
668d8c61cf
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)
2011-06-20 17:42:48 -03:00
Werner Almesberger
78ab017990
tools/atrf-proxy/atrf-proxy.c (cmd_zero): reduce poll delay from 100 ms to 2 ms
...
The overly generous delay has the effect of encouraging dubious
optimizations elsewhere. Not a good idea.
2011-06-09 20:54:07 -03:00
Werner Almesberger
1a3f169e89
libatrf: add option to send a pulse with atrf_slp_tr
...
- include/atrf.h (atrf_slp_tr), lib/atrf.c (atrf_slp_tr): added pulse
argument
- atrf-proxy/PROTOCOL, atrf-proxy/atrf-proxy.c (cmd_two, cmd_more):
added second argument to SLP_TR command
- atrf-xtal/atben.c (atben_sample), lib/cwtest.c (cw_test_end): updated
for API change
- lib/driver.h (struct atrf_driver): added "pulse" argument to slp_tr
- lib/atben.c (atben_slp_tr), lib/atnet.c (atnet_slp_tr): added support
for pulse mode
2011-06-05 21:08:48 -03:00
Werner Almesberger
565fadf258
tools/lib/atusb.c: added SRAM access to atusb driver
...
- tools/atrf-proxy/PROTOCOL: documented new commands GETRAM and SETRAM
for SRAM access
- tools/atrf-proxy/atrf-proxy.c (cmd_two, cmd_more): added "setram"
command
- tools/atrf-proxy/atrf-proxy.c (cmd_more): added "getram" command
- tools/lib/atnet.c (atnet_sram_write, atnet_sram_read): SRAM access
functions
- tools/lub/atnet.c (atnet_driver): added new functions to driver
operations
2011-06-03 14:35:21 -03:00
Werner Almesberger
1bfe86ac1b
tools/atrf-proxy/atrf-proxy.c: new option -b to background/daemonize
...
- atrf-proxy.c (usage): added detailed description of the arguments
- atrf-proxy.c (usage, main): new option -b to daemonize after
initialization
2011-05-18 13:53:01 -03:00
Werner Almesberger
2961482cac
tools: atrf-id option -s to retrieve driver spec, with necessary infrastructure
...
- include/atrf.h (atrf_driver_spec), lib/atrf.c (atrf_driver_spec):
new function to retrieve the local or remote/final driver spec
- lib/atrf.c (struct atrf_dsc, atrf_open, atrf_close): record the local
driver spec
- lib/driver.h (struct atrf_driver): new driver function "driver_spec"
to retrieve the driver spec
- lib/atnet.c (struct atnet_dsc, atnet_open, atnet_close): maintain a
cache for the driver spec
- lib/atnet.c (atnet_driver_spec, atnet_driver): added support for the
"driver_spec" function
- atrf-proxy/PROTOCOL, atrf-proxy/atrf-proxy.c (cmd_zero): added command
SPEC to retrieve the (final) driver spec
- atrf-id/atrf-id.c (usage, main): added option -s to retrieve the
driver spec. One -s retrieves the local spec, -s -s the remote/final.
2011-04-20 08:58:17 -03:00
Werner Almesberger
02b80879bf
atrf-proxy.c (loop): use SO_REUSEADDR to avoid "address already in use"
2011-04-12 06:58:55 -03:00
Werner Almesberger
4246535456
tools/lib/: atnet now works (tried atrf-txrx send and receive, atrf-rssi)
...
- atrf-proxy/atrf-proxy.c (cmd_two): "SET" wrote the wrong value
- lib/atnet.c (atnet_buf_read): cleaned up the logic and fixed some
small bugs
2011-04-11 10:40:44 -03:00
Werner Almesberger
4ad0383020
tools/atrf-proxy/: network proxy (untested)
2011-04-10 19:55:47 -03:00