aboutsummaryrefslogtreecommitdiffstats
path: root/host/usrp_e_utils/usrp-e-wb-test.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-06-17 15:37:30 -0700
committerJosh Blum <josh@joshknows.com>2011-06-17 15:37:30 -0700
commit2e401993b5b3e8920017729f4325ff5a51790fa5 (patch)
tree51f904c8fa927cc55586b9b05e319fa089da8c79 /host/usrp_e_utils/usrp-e-wb-test.cpp
parenta852b6011c11e32e000ccd18c2009edfe81500ee (diff)
downloaduhd-2e401993b5b3e8920017729f4325ff5a51790fa5.tar.gz
uhd-2e401993b5b3e8920017729f4325ff5a51790fa5.tar.bz2
uhd-2e401993b5b3e8920017729f4325ff5a51790fa5.zip
e100: removed usrp from directory prefix
Diffstat (limited to 'host/usrp_e_utils/usrp-e-wb-test.cpp')
-rw-r--r--host/usrp_e_utils/usrp-e-wb-test.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/host/usrp_e_utils/usrp-e-wb-test.cpp b/host/usrp_e_utils/usrp-e-wb-test.cpp
index 3d6a8d101..efd9312c1 100644
--- a/host/usrp_e_utils/usrp-e-wb-test.cpp
+++ b/host/usrp_e_utils/usrp-e-wb-test.cpp
@@ -24,7 +24,7 @@
#include <fcntl.h> //open, close
#include <linux/usrp_e.h>
-#include "usrp_e100_regs.hpp"
+#include "e100_regs.hpp"
static const size_t num_test_iters = 10000000;
@@ -91,18 +91,18 @@ int main(int, char *[]){
int random_secs = ::random();
//set a bunch of registers
- poke16(UE_REG_MISC_TEST, random_test16);
- poke32(UE_REG_SR_MISC_TEST32, random_test32);
- poke32(UE_REG_TIME64_TICKS, 0);
- poke32(UE_REG_TIME64_IMM, 1); //immediate
- poke32(UE_REG_TIME64_SECS, random_secs);
+ poke16(E100_REG_MISC_TEST, random_test16);
+ poke32(E100_REG_SR_MISC_TEST32, random_test32);
+ poke32(E100_REG_TIME64_TICKS, 0);
+ poke32(E100_REG_TIME64_IMM, 1); //immediate
+ poke32(E100_REG_TIME64_SECS, random_secs);
//read a bunch of registers
if (
- (peek16(UE_REG_MISC_TEST) == random_test16) and
- (peek32(UE_REG_RB_MISC_TEST32) == random_test32) and
- (peek32(UE_REG_RB_TIME_NOW_SECS) == random_secs) and
-// (peek32(UE_REG_RB_TIME_NOW_TICKS) < 1000000) and
+ (peek16(E100_REG_MISC_TEST) == random_test16) and
+ (peek32(E100_REG_RB_MISC_TEST32) == random_test32) and
+ (peek32(E100_REG_RB_TIME_NOW_SECS) == random_secs) and
+// (peek32(E100_REG_RB_TIME_NOW_TICKS) < 1000000) and
true) num_pass++;
else num_fail++;
}