aboutsummaryrefslogtreecommitdiffstats
path: root/host/apps/omap_debug/usrp-e-rw.c
diff options
context:
space:
mode:
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)) {