From ac62d187cc7a4adde65c1e6fb1807ec5a967f966 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Fri, 28 May 2010 17:41:01 +0000 Subject: reverted usrp-e-led sorry --- host/apps/omap_debug/usrp-e-led.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'host/apps') 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; } -- cgit v1.2.3