forked from M-Labs/artiq
1
0
Fork 0

runtime/spi: don't apply channel offset

This commit is contained in:
Robert Jördens 2016-02-29 11:53:36 +01:00
parent 948fefa69a
commit aeae565d35
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@
void spi_write(long long int timestamp, int channel, int addr, void spi_write(long long int timestamp, int channel, int addr,
unsigned int data) unsigned int data)
{ {
rtio_chan_sel_write(CONFIG_RTIO_FIRST_SPI_CHANNEL + channel); rtio_chan_sel_write(channel);
rtio_o_address_write(addr); rtio_o_address_write(addr);
rtio_o_data_write(data); rtio_o_data_write(data);
rtio_o_timestamp_write(timestamp); rtio_o_timestamp_write(timestamp);