2010-08-22 12:28:40 +03:00
|
|
|
#
|
2010-11-11 15:14:04 +02:00
|
|
|
# tools/Makefile - Build the ATRF-specific tools
|
2010-08-22 12:28:40 +03:00
|
|
|
#
|
2011-01-09 23:54:49 +02:00
|
|
|
# Written 2010-2011 by Werner Almesberger
|
|
|
|
# Copyright 2010-2011 Werner Almesberger
|
2010-08-22 12:28:40 +03:00
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2011-05-11 09:47:55 +03:00
|
|
|
BEN_DIRS=atrf-id atrf-path atrf-proxy atrf-reset atrf-rssi atrf-trim \
|
|
|
|
atrf-txrx atrf-xmit atrf-xtal
|
|
|
|
DIRS=$(BEN_DIRS) usbwait
|
2010-08-24 12:16:48 +03:00
|
|
|
TARGET_ONLY_DIRS=lib
|
2010-08-22 12:28:40 +03:00
|
|
|
|
2011-01-09 23:54:49 +02:00
|
|
|
ifeq ($(TARGET),ben_jlime)
|
|
|
|
HOST = jlime
|
|
|
|
else
|
|
|
|
HOST = ben
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
2011-03-22 16:05:05 +02:00
|
|
|
include ../makefiles/Makefile.recurse
|
Updated atusd driver for new hardware. Make use of the interrupt line.
- tools/lib/atusd.c (spi_send_partial, spi_send): removed the old spi_send
and renamed spi_send_partial to spi_send
- tools/lib/atusd.c (atusd_cycle, spi_send, spi_recv, atusd_open): updated
for removal of SLP_TR and split of MxSx into MOSI and MISO
- tools/lib/atusd.c (atusd_reset_rf, atusd_open): added delays to precharge
the capacitors
- tools/lib/atusd.c (atusd_reset, spi_data_in, spi_data_out, spi_finish):
removed functions for obsolete hardware features
- tools/lib/atusd.c (atusd_reg_read): removed calls to removed functions
- tools/lib/atusd.c (atusd_buf_write, atusd_buf_read, atusd_driver): new
buffer read/write functions
- tools/atspi-txrx/atspi-txrx.c (init_txrx): set the internal osciallator
trim only in the USB version. Switch to the external oscillator in the
uSD version.
- tools/atspi-rssi/atspi-rssi.c (sweep), tools/atspi-txrx/atspi-txrx.c
(set_channel): wait for the PLL to settle after setting the channel
- tools/include/atspi.h, tools/lib/atspi.c (atspi_interrupt),
tools/lib/driver.h (struct atspi_driver), tools/lib/atusd.c
(atusd_interrupt): new function to poll the interrupt line
- tools/atspi-txrx/atspi-txrx.c (receive): only read REG_IRQ_STATUS if
there is a pending interrupt
- tools/atspi-id/atspi-id.c (usage): print "usage:" as well
- tools/Makefile (upload): upload the atspi tools to the Ben
2010-09-09 15:19:06 +03:00
|
|
|
|
|
|
|
.PHONY: upload
|
|
|
|
|
|
|
|
upload:
|
2011-05-11 09:47:55 +03:00
|
|
|
scp `for n in $(BEN_DIRS); do \
|
|
|
|
echo $$n/$$n; done` $(HOST):/usr/bin/
|