diff options
author | Josh Blum <josh@joshknows.com> | 2010-05-04 09:32:59 +0000 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-05-04 09:32:59 +0000 |
commit | 16c5767940f8feb99c108c170ae4fb4f17b27141 (patch) | |
tree | f0b48d9c8e93f919098b405c9843d3ef0c4cd395 /host/apps/omap_debug/usrp-e-spi.c | |
parent | 8f21adbed40db490bec8ead6b8d50d2b3d1a4136 (diff) | |
parent | 6929d0cba40a2bf4f4b3b81819bb915bdbb16488 (diff) | |
download | uhd-16c5767940f8feb99c108c170ae4fb4f17b27141.tar.gz uhd-16c5767940f8feb99c108c170ae4fb4f17b27141.tar.bz2 uhd-16c5767940f8feb99c108c170ae4fb4f17b27141.zip |
Merge branch 'usrp_e' of git@ettus.sourcerepo.com:ettus/uhdpriv into usrp_e
Diffstat (limited to 'host/apps/omap_debug/usrp-e-spi.c')
-rw-r--r-- | host/apps/omap_debug/usrp-e-spi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/host/apps/omap_debug/usrp-e-spi.c b/host/apps/omap_debug/usrp-e-spi.c index caa36b3f1..d2c38e524 100644 --- a/host/apps/omap_debug/usrp-e-spi.c +++ b/host/apps/omap_debug/usrp-e-spi.c @@ -1,5 +1,6 @@ #include <stdio.h> #include <stdlib.h> +#include <unistd.h> #include <sys/types.h> #include <fcntl.h> #include <sys/ioctl.h> @@ -36,7 +37,7 @@ int main(int argc, char *argv[]) if (*argv[1] == 'r') { spi_dat.readback = 1; ret = ioctl(fp, USRP_E_SPI, &spi_dat); - printf("Data returned = %d\n", ret); + printf("Ioctl returns: %d, Data returned = %d\n", ret, spi_dat.data); } else { spi_dat.readback = 0; ioctl(fp, USRP_E_SPI, &spi_dat); |