diff options
author | Philip Balister <philip@opensdr.com> | 2010-05-03 12:51:02 +0000 |
---|---|---|
committer | Philip Balister <philip@opensdr.com> | 2010-05-03 12:51:02 +0000 |
commit | 4c4e0f48534a735cc7f5780f4483871264a880ad (patch) | |
tree | fc8ce33e617ea1c46fcc5a6e71c56131c4076a1a /host/apps | |
parent | a8f284d03d061a2fb9a6daf6e6bc2493daccd5d4 (diff) | |
download | uhd-4c4e0f48534a735cc7f5780f4483871264a880ad.tar.gz uhd-4c4e0f48534a735cc7f5780f4483871264a880ad.tar.bz2 uhd-4c4e0f48534a735cc7f5780f4483871264a880ad.zip |
Add hack to work around driver race.
Diffstat (limited to 'host/apps')
-rw-r--r-- | host/apps/omap_debug/usrp-e-i2c.c | 3 | ||||
-rw-r--r-- | host/apps/omap_debug/usrp-e-spi.c | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/host/apps/omap_debug/usrp-e-i2c.c b/host/apps/omap_debug/usrp-e-i2c.c index 575430f84..57a3f4739 100644 --- a/host/apps/omap_debug/usrp-e-i2c.c +++ b/host/apps/omap_debug/usrp-e-i2c.c @@ -1,6 +1,7 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> +#include <unistd.h> #include <sys/types.h> #include <fcntl.h> #include <sys/ioctl.h> @@ -37,6 +38,8 @@ int main(int argc, char *argv[]) fp = open("/dev/usrp_e0", O_RDWR); printf("fp = %d\n", fp); + sleep(1); + if (direction) { count = argc - 3; } else { diff --git a/host/apps/omap_debug/usrp-e-spi.c b/host/apps/omap_debug/usrp-e-spi.c index 264231731..47ee9369c 100644 --- a/host/apps/omap_debug/usrp-e-spi.c +++ b/host/apps/omap_debug/usrp-e-spi.c @@ -1,5 +1,6 @@ #include <stdio.h> #include <stdlib.h> +#include <unistd.h> #include <sys/types.h> #include <fcntl.h> #include <sys/ioctl.h> |