aboutsummaryrefslogtreecommitdiffstats
path: root/host/apps/omap_debug/usrp-e-write.c
diff options
context:
space:
mode:
authorroot <root@usrp1-e.(none)>2010-03-24 16:59:01 +0000
committerroot <root@usrp1-e.(none)>2010-03-24 16:59:01 +0000
commit46c0c6ca62296ad86e9e302e85577dc4b800c6cb (patch)
treedda705431f700a18ceebc34f3ecbc52c07a27f40 /host/apps/omap_debug/usrp-e-write.c
parent550bf3230aa1a5e7236d5bdb64a77c4ae1acea66 (diff)
parent4e5429b2839115235c7be778fe334479b833f128 (diff)
downloaduhd-46c0c6ca62296ad86e9e302e85577dc4b800c6cb.tar.gz
uhd-46c0c6ca62296ad86e9e302e85577dc4b800c6cb.tar.bz2
uhd-46c0c6ca62296ad86e9e302e85577dc4b800c6cb.zip
Merge branch 'u1e_uhd' of git@ettus.sourcerepo.com:ettus/uhd into u1e_uhd
Diffstat (limited to 'host/apps/omap_debug/usrp-e-write.c')
-rw-r--r--host/apps/omap_debug/usrp-e-write.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/host/apps/omap_debug/usrp-e-write.c b/host/apps/omap_debug/usrp-e-write.c
new file mode 100644
index 000000000..903c0071f
--- /dev/null
+++ b/host/apps/omap_debug/usrp-e-write.c
@@ -0,0 +1,21 @@
+#include <stdio.h>
+#include <sys/types.h>
+#include <fcntl.h>
+
+int main(int rgc, char *argv[])
+{
+ int fp, i, cnt;
+ short buf[1024];
+
+ fp = open("/dev/usrp1_e0", O_WRONLY);
+ printf("fp = %d\n", fp);
+
+ for (i=0; i<1024; i++) {
+ buf[i] = i;
+ }
+
+// do {
+ cnt = write(fp, buf, 2048);
+ printf("Bytes written - %d\n", cnt);
+// } while (1);
+}