diff options
author | Josh Blum <josh@joshknows.com> | 2012-03-05 19:15:22 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2012-03-23 14:36:56 -0700 |
commit | 08e2432cdeeabd7010252b4a747a385e1b189614 (patch) | |
tree | 835fffb297188cfa6b20282e356e96df0377e5b1 /firmware/zpu/lib/ad9510.c | |
parent | ee04c245f142ae6637091076445d955108d4da62 (diff) | |
download | uhd-08e2432cdeeabd7010252b4a747a385e1b189614.tar.gz uhd-08e2432cdeeabd7010252b4a747a385e1b189614.tar.bz2 uhd-08e2432cdeeabd7010252b4a747a385e1b189614.zip |
spi: work on fw support for simple spi core
Diffstat (limited to 'firmware/zpu/lib/ad9510.c')
-rw-r--r-- | firmware/zpu/lib/ad9510.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/zpu/lib/ad9510.c b/firmware/zpu/lib/ad9510.c index 4d3acb65d..4021a9bf7 100644 --- a/firmware/zpu/lib/ad9510.c +++ b/firmware/zpu/lib/ad9510.c @@ -1,5 +1,5 @@ -/* -*- c++ -*- */ /* + * Copyright 2012 Ettus Research LLC * Copyright 2008 Free Software Foundation, Inc. * * This program is free software: you can redistribute it and/or modify @@ -28,7 +28,7 @@ ad9510_write_reg(int regno, uint8_t value) { uint32_t inst = WR | (regno & 0xff); uint32_t v = (inst << 8) | (value & 0xff); - spi_transact(SPI_TXONLY, SPI_SS_AD9510, v, 24, SPIF_PUSH_FALL); + spi_transact(SPI_TXONLY, SPI_SS_AD9510, v, 24, SPI_PUSH_FALL); } int @@ -37,6 +37,6 @@ ad9510_read_reg(int regno) uint32_t inst = RD | (regno & 0xff); uint32_t v = (inst << 8) | 0; uint32_t r = spi_transact(SPI_TXRX, SPI_SS_AD9510, v, 24, - SPIF_PUSH_FALL | SPIF_LATCH_FALL); + SPI_PUSH_FALL | SPI_LATCH_FALL); return r & 0xff; } |