diff options
author | Josh Blum <josh@joshknows.com> | 2010-05-07 21:10:30 +0000 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-05-07 21:10:30 +0000 |
commit | ac17bb0e8a3049944adde0aa5cbdcfb2ea711794 (patch) | |
tree | 8f7bd7ab46f7f9e863c0e5438d16fc4f6cb8c524 /host/apps/omap_debug/usrp-e-spi.c | |
parent | 760f6f840204736439a65d5d773f1dd5e4f4157a (diff) | |
parent | 6c306995a733622a0b0c3fb8c13c23dc8301d926 (diff) | |
download | uhd-ac17bb0e8a3049944adde0aa5cbdcfb2ea711794.tar.gz uhd-ac17bb0e8a3049944adde0aa5cbdcfb2ea711794.tar.bz2 uhd-ac17bb0e8a3049944adde0aa5cbdcfb2ea711794.zip |
Merge branch 'usrp_e' of 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 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/host/apps/omap_debug/usrp-e-spi.c b/host/apps/omap_debug/usrp-e-spi.c index d2c38e524..c353c409b 100644 --- a/host/apps/omap_debug/usrp-e-spi.c +++ b/host/apps/omap_debug/usrp-e-spi.c @@ -28,6 +28,13 @@ int main(int argc, char *argv[]) fp = open("/dev/usrp_e0", O_RDWR); printf("fp = %d\n", fp); + if (fp < 0) { + perror("Open failed"); + return -1; + } + +// sleep(1); + spi_dat.slave = slave; spi_dat.data = data; |