aboutsummaryrefslogtreecommitdiffstats
path: root/host/apps/omap_debug/usrp-e-ram.c
diff options
context:
space:
mode:
Diffstat (limited to 'host/apps/omap_debug/usrp-e-ram.c')
-rw-r--r--host/apps/omap_debug/usrp-e-ram.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/host/apps/omap_debug/usrp-e-ram.c b/host/apps/omap_debug/usrp-e-ram.c
deleted file mode 100644
index d548f7ccd..000000000
--- a/host/apps/omap_debug/usrp-e-ram.c
+++ /dev/null
@@ -1,25 +0,0 @@
-#include <stdio.h>
-#include <sys/types.h>
-#include <fcntl.h>
-
-int main(int rgc, char *argv[])
-{
- int fp, i, cnt;
- unsigned short buf[1024];
- unsigned short buf_rb[1024];
-
- fp = open("/dev/usrp1_e0", O_RDWR);
- printf("fp = %d\n", fp);
-
- for (i=0; i<1024; i++)
- buf[i] = i*256;
- write(fp, buf, 2048);
- read(fp, buf_rb, 2048);
-
- printf("Read back %hX %hX\n", buf_rb[0], buf_rb[1]);
-
- for (i=0; i<1024; i++) {
- if (buf[i] != buf_rb[i])
- printf("Read - %hX, expected - %hX\n", buf_rb[i], buf[i]);
- }
-}