aboutsummaryrefslogtreecommitdiffstats
path: root/host/apps/omap_debug/usrp-e-rw.c
diff options
context:
space:
mode:
authorPhilip Balister <philip@opensdr.com>2010-03-25 20:43:59 +0000
committerPhilip Balister <philip@opensdr.com>2010-03-25 20:43:59 +0000
commit717a6acd2b0687348c492cbf2e0813ffd63d847a (patch)
treed122ff9ed985406c14c57f97ac47e7dac7359b56 /host/apps/omap_debug/usrp-e-rw.c
parent28e5e0740a8fc3c7233a1bd5cc6bbc897c586da6 (diff)
downloaduhd-717a6acd2b0687348c492cbf2e0813ffd63d847a.tar.gz
uhd-717a6acd2b0687348c492cbf2e0813ffd63d847a.tar.bz2
uhd-717a6acd2b0687348c492cbf2e0813ffd63d847a.zip
Update read/write test program to new header name and add to Makefile.
Diffstat (limited to 'host/apps/omap_debug/usrp-e-rw.c')
-rw-r--r--host/apps/omap_debug/usrp-e-rw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/apps/omap_debug/usrp-e-rw.c b/host/apps/omap_debug/usrp-e-rw.c
index cd7fbe4dd..5607166b0 100644
--- a/host/apps/omap_debug/usrp-e-rw.c
+++ b/host/apps/omap_debug/usrp-e-rw.c
@@ -3,6 +3,7 @@
#include <fcntl.h>
#include <pthread.h>
#include <stdlib.h>
+#include <unistd.h>
struct pkt {
int checksum;
@@ -74,11 +75,10 @@ static void *write_thread(void *threadid)
int main(int argc, char *argv[])
{
- int ret;
pthread_t tx, rx;
long int t;
- fp = open("/dev/usrp1_e0", O_RDWR);
+ fp = open("/dev/usrp_e0", O_RDWR);
printf("fp = %d\n", fp);
if (pthread_create(&rx, NULL, read_thread, (void *) t)) {