diff options
author | Josh Blum <josh@joshknows.com> | 2010-05-28 17:41:01 +0000 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-05-28 17:41:01 +0000 |
commit | ac62d187cc7a4adde65c1e6fb1807ec5a967f966 (patch) | |
tree | 797e0e593e4e9402e75b2292b974b27836a5b5f6 /host/apps/omap_debug | |
parent | e940d0225944a210584c386d270d09b132b5514b (diff) | |
download | uhd-ac62d187cc7a4adde65c1e6fb1807ec5a967f966.tar.gz uhd-ac62d187cc7a4adde65c1e6fb1807ec5a967f966.tar.bz2 uhd-ac62d187cc7a4adde65c1e6fb1807ec5a967f966.zip |
reverted usrp-e-led sorry
Diffstat (limited to 'host/apps/omap_debug')
-rw-r--r-- | host/apps/omap_debug/usrp-e-led.c | 16 |
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 30fbb66e0..d1b6c8996 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+14; + d.offset = UE_REG_MISC_BASE; d.count = 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); + while (1) { + for (i=0; i<8; i++) { + d.buf[0] = i; + ret = ioctl(fp, USRP_E_WRITE_CTL16, &d); + sleep(1); + } + } return 0; } |