diff options
author | Matt Ettus <matt@ettus.com> | 2010-04-01 16:56:29 -0700 |
---|---|---|
committer | Matt Ettus <matt@ettus.com> | 2010-04-01 16:56:29 -0700 |
commit | 58d71729716a688af36ba4a413e6f6ee4729eefc (patch) | |
tree | 86d56af654be719b8750c7ff9c001e2e320ec504 /host/apps | |
parent | 38233271a2d2ab84adfc5cc8c9700601933b717a (diff) | |
parent | 9b30d7293f93ec340c23448147c425c398c01db4 (diff) | |
download | uhd-58d71729716a688af36ba4a413e6f6ee4729eefc.tar.gz uhd-58d71729716a688af36ba4a413e6f6ee4729eefc.tar.bz2 uhd-58d71729716a688af36ba4a413e6f6ee4729eefc.zip |
Merge branch 'usrp_e' of ettus.sourcerepo.com:ettus/uhd into usrp_e
Diffstat (limited to 'host/apps')
-rw-r--r-- | host/apps/omap_debug/usrp-e-spi.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/host/apps/omap_debug/usrp-e-spi.c b/host/apps/omap_debug/usrp-e-spi.c index f7131bbe3..de1409647 100644 --- a/host/apps/omap_debug/usrp-e-spi.c +++ b/host/apps/omap_debug/usrp-e-spi.c @@ -10,23 +10,24 @@ int main(int argc, char *argv[]) { - int fp, slave, data, ret; + int fp, slave, length, data, ret; struct usrp_e_spi spi_dat; - if (argc < 4) { - printf("Usage: usrp_e_spi w|rb slave data\n"); + if (argc < 5) { + printf("Usage: usrp_e_spi w|rb slave transfer_length data\n"); exit(-1); } slave = atoi(argv[2]); - data = atoi(argv[3]); + length = atoi(argv[3]); + data = atoi(argv[4]); fp = open("/dev/usrp_e0", O_RDWR); printf("fp = %d\n", fp); spi_dat.slave = slave; spi_dat.data = data; - spi_dat.length = 32; + spi_dat.length = length; spi_dat.flags = 0; if (*argv[1] == 'r') { |