analogdevicesinc / no-OS

Software drivers in C for systems without an operating system
http://analogdevicesinc.github.io/no-OS/
Other
967 stars 1.66k forks source link

ad9361_txmon_setup doesn't setup 0x06A register #41

Closed GardenerWilly closed 6 years ago

GardenerWilly commented 6 years ago

Guess must be something like this:

ad9361_spi_write(spi, REG_TX_MON_DELAY, ctrl->tx_mon_delay & 0xFF);
ad9361_spi_writef(spi, REG_TX_LEVEL_THRESH, TX_MON_DELAY_COUNTER(~0), ctrl->tx_mon_delay >> 8);
dbogdan commented 6 years ago

Fixed. Thanks for let us know about this.