summaryrefslogtreecommitdiffstats
path: root/firmware/zpu/apps
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2012-03-05 19:15:22 -0800
committerJosh Blum <josh@joshknows.com>2012-03-23 14:36:56 -0700
commit08e2432cdeeabd7010252b4a747a385e1b189614 (patch)
tree835fffb297188cfa6b20282e356e96df0377e5b1 /firmware/zpu/apps
parentee04c245f142ae6637091076445d955108d4da62 (diff)
downloaduhd-08e2432cdeeabd7010252b4a747a385e1b189614.tar.gz
uhd-08e2432cdeeabd7010252b4a747a385e1b189614.tar.bz2
uhd-08e2432cdeeabd7010252b4a747a385e1b189614.zip
spi: work on fw support for simple spi core
Diffstat (limited to 'firmware/zpu/apps')
-rw-r--r--firmware/zpu/apps/txrx_uhd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/zpu/apps/txrx_uhd.c b/firmware/zpu/apps/txrx_uhd.c
index 591ee135a..0142aa3d4 100644
--- a/firmware/zpu/apps/txrx_uhd.c
+++ b/firmware/zpu/apps/txrx_uhd.c
@@ -181,8 +181,8 @@ static void handle_udp_ctrl_packet(
ctrl_data_in->data.spi_args.dev, //which device
ctrl_data_in->data.spi_args.data, //32 bit data
ctrl_data_in->data.spi_args.num_bits, //length in bits
- (ctrl_data_in->data.spi_args.mosi_edge == USRP2_CLK_EDGE_RISE)? SPIF_PUSH_FALL : SPIF_PUSH_RISE |
- (ctrl_data_in->data.spi_args.miso_edge == USRP2_CLK_EDGE_RISE)? SPIF_LATCH_RISE : SPIF_LATCH_FALL
+ (ctrl_data_in->data.spi_args.mosi_edge == USRP2_CLK_EDGE_RISE)? SPI_PUSH_FALL : SPI_PUSH_RISE |
+ (ctrl_data_in->data.spi_args.miso_edge == USRP2_CLK_EDGE_RISE)? SPI_LATCH_RISE : SPI_LATCH_FALL
);
//load output