diff options
author | Tom Rondeau <trondeau@vt.edu> | 2011-10-19 16:40:14 -0700 |
---|---|---|
committer | Tom Rondeau <trondeau@vt.edu> | 2011-10-19 16:40:14 -0700 |
commit | eb95f431badf197b249131a3119a92bd5317621b (patch) | |
tree | 645854a7e1e6cf57fcae56f196a5d828b913555e /usrp2/host/apps/gen_const.cc | |
parent | e30b824e9165bff69f09121631c3d5a706cbbd39 (diff) |
Removed usrp(2) directories.
Diffstat (limited to 'usrp2/host/apps/gen_const.cc')
-rw-r--r-- | usrp2/host/apps/gen_const.cc | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/usrp2/host/apps/gen_const.cc b/usrp2/host/apps/gen_const.cc deleted file mode 100644 index d2c36ebba6..0000000000 --- a/usrp2/host/apps/gen_const.cc +++ /dev/null @@ -1,27 +0,0 @@ -#include <stdio.h> -#include <stdint.h> -#include <stdlib.h> -#include <unistd.h> - -int -main(int argc, char **argv) -{ - if (argc != 3){ - fprintf(stderr, "usage: %s i-val q-val\n", argv[0]); - return 1; - } - - int i_val = strtol(argv[1], 0, 0); - int q_val = strtol(argv[2], 0, 0); - - static const int NSAMPLES = 16384; - - uint32_t sample[NSAMPLES]; - sample[0] = ((i_val & 0xffff) << 16) | (q_val & 0xffff); - for (int i = 1; i < NSAMPLES; i++) - sample[i] = sample[0]; - - while(1){ - write(1, sample, sizeof(sample)); - } -} |