diff options
author | Josh Blum <josh@joshknows.com> | 2010-03-31 19:25:22 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-03-31 19:25:22 -0700 |
commit | f01b1a394fbf7304aefc0231f500a52db457767a (patch) | |
tree | b7b420e9d30a2393540cd637482a7b365e070061 /firmware/microblaze/apps | |
parent | f15df8146cffb6cf42e0365396484af085be5df4 (diff) | |
download | uhd-f01b1a394fbf7304aefc0231f500a52db457767a.tar.gz uhd-f01b1a394fbf7304aefc0231f500a52db457767a.tar.bz2 uhd-f01b1a394fbf7304aefc0231f500a52db457767a.zip |
added spi slaves to regs, use std copy for buffs
Diffstat (limited to 'firmware/microblaze/apps')
-rw-r--r-- | firmware/microblaze/apps/txrx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/microblaze/apps/txrx.c b/firmware/microblaze/apps/txrx.c index 430ae2fac..39a503091 100644 --- a/firmware/microblaze/apps/txrx.c +++ b/firmware/microblaze/apps/txrx.c @@ -264,7 +264,7 @@ void handle_udp_ctrl_packet( //transact uint32_t result = spi_transact( (ctrl_data_in->data.spi_args.readback == 0)? SPI_TXONLY : SPI_TXRX, - (ctrl_data_in->data.spi_args.dev == USRP2_DIR_RX)? SPI_SS_RX_DB : SPI_SS_TX_DB, + ctrl_data_in->data.spi_args.dev, data, num_bytes*8, //length in bits (ctrl_data_in->data.spi_args.edge == USRP2_CLK_EDGE_RISE)? SPIF_PUSH_RISE : SPIF_PUSH_FALL | (ctrl_data_in->data.spi_args.edge == USRP2_CLK_EDGE_RISE)? SPIF_LATCH_RISE : SPIF_LATCH_FALL |