diff options
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 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; } |