aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilip Balister <philip@opensdr.com>2010-04-02 12:33:37 +0000
committerPhilip Balister <philip@opensdr.com>2010-04-02 12:33:37 +0000
commit80b2b928df6e3c1caf68dee199593a0af1cb91ae (patch)
treeb863f825587a759e9757724fddb48e869d403b8c
parentbcd80dae09776eddaf4fdf9c6fb925c0b2586a11 (diff)
downloaduhd-80b2b928df6e3c1caf68dee199593a0af1cb91ae.tar.gz
uhd-80b2b928df6e3c1caf68dee199593a0af1cb91ae.tar.bz2
uhd-80b2b928df6e3c1caf68dee199593a0af1cb91ae.zip
Handle 32 bit data to spi controller.
-rw-r--r--host/apps/omap_debug/usrp-e-spi.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/host/apps/omap_debug/usrp-e-spi.c b/host/apps/omap_debug/usrp-e-spi.c
index de1409647..f693d7db1 100644
--- a/host/apps/omap_debug/usrp-e-spi.c
+++ b/host/apps/omap_debug/usrp-e-spi.c
@@ -10,7 +10,8 @@
int main(int argc, char *argv[])
{
- int fp, slave, length, data, ret;
+ int fp, slave, length, ret;
+ unsigned int data;
struct usrp_e_spi spi_dat;
if (argc < 5) {
@@ -20,7 +21,9 @@ int main(int argc, char *argv[])
slave = atoi(argv[2]);
length = atoi(argv[3]);
- data = atoi(argv[4]);
+ data = atoll(argv[4]);
+
+ printf("Data = %X\n", data);
fp = open("/dev/usrp_e0", O_RDWR);
printf("fp = %d\n", fp);