diff options
author | Philip Balister <balister@moose.(none)> | 2010-03-24 11:33:02 -0400 |
---|---|---|
committer | Philip Balister <balister@moose.(none)> | 2010-03-24 11:33:02 -0400 |
commit | 4e5429b2839115235c7be778fe334479b833f128 (patch) | |
tree | cf5cb2f567212d5199ff239423964aef350b2e87 /host/apps/omap_debug/usrp-e-write.c | |
parent | 3137e2ca001176c4ffc12e091530fe23c82974b6 (diff) | |
download | uhd-4e5429b2839115235c7be778fe334479b833f128.tar.gz uhd-4e5429b2839115235c7be778fe334479b833f128.tar.bz2 uhd-4e5429b2839115235c7be778fe334479b833f128.zip |
Start renaming stuff in line with product name USRP Embedded.
Diffstat (limited to 'host/apps/omap_debug/usrp-e-write.c')
-rw-r--r-- | host/apps/omap_debug/usrp-e-write.c | 21 |
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); +} |