aboutsummaryrefslogtreecommitdiffstats
path: root/host/apps
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-05-27 23:09:09 +0000
committerJosh Blum <josh@joshknows.com>2010-05-27 23:09:09 +0000
commite940d0225944a210584c386d270d09b132b5514b (patch)
tree59188c0b162c29c02ed09a59b32ab84010ecf269 /host/apps
parentf113ae17863729f05b6ada815b9817cd16001211 (diff)
parent4eff47a4b66eff61feffe6498b9ecebef94dc6b9 (diff)
downloaduhd-e940d0225944a210584c386d270d09b132b5514b.tar.gz
uhd-e940d0225944a210584c386d270d09b132b5514b.tar.bz2
uhd-e940d0225944a210584c386d270d09b132b5514b.zip
Merge branch 'master' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e
Conflicts: host/utils/CMakeLists.txt
Diffstat (limited to 'host/apps')
-rw-r--r--host/apps/omap_debug/usrp-e-led.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/host/apps/omap_debug/usrp-e-led.c b/host/apps/omap_debug/usrp-e-led.c
index d1b6c8996..30fbb66e0 100644
--- a/host/apps/omap_debug/usrp-e-led.c
+++ b/host/apps/omap_debug/usrp-e-led.c
@@ -20,16 +20,16 @@ int main(int argc, char *argv[])
fp = open("/dev/usrp_e0", O_RDWR);
printf("fp = %d\n", fp);
- d.offset = UE_REG_MISC_BASE;
+ d.offset = UE_REG_MISC_BASE+14;
d.count = 1;
- while (1) {
- for (i=0; i<8; i++) {
- d.buf[0] = i;
- ret = ioctl(fp, USRP_E_WRITE_CTL16, &d);
- sleep(1);
- }
- }
+ d.buf[0] = 0x4020;
+ ret = ioctl(fp, USRP_E_WRITE_CTL16, &d);
+
+ sleep(10);
+
+ d.buf[0] = 0x0;
+ ret = ioctl(fp, USRP_E_WRITE_CTL16, &d);
return 0;
}