ad9154: don't drive the bsm with txen pins

This commit is contained in:
Robert Jördens 2018-06-18 08:04:07 +00:00 committed by Robert Jördens
parent 32484a62de
commit 6272052d15
1 changed files with 3 additions and 1 deletions

View File

@ -167,7 +167,9 @@ fn dac_setup(dacno: u8, linerate: u64) -> Result<(), &'static str> {
0*ad9154_reg::PD_BG); 0*ad9154_reg::PD_BG);
clock::spin_us(100); clock::spin_us(100);
write(ad9154_reg::TXENMASK1, 0*ad9154_reg::DACA_MASK | write(ad9154_reg::TXENMASK1, 0*ad9154_reg::DACA_MASK |
0*ad9154_reg::DACB_MASK); // TX not controlled by TXEN pins 0*ad9154_reg::DACB_MASK); // DAC PD not controlled by TXEN pins
write(ad9154_reg::PWRCNTRL3, 1*ad9154_reg::ENA_SPI_TXEN |
1*ad9154_reg::SPI_TXEN);
write(ad9154_reg::CLKCFG0, write(ad9154_reg::CLKCFG0,
0*ad9154_reg::REF_CLKDIV_EN | 1*ad9154_reg::RF_SYNC_EN | 0*ad9154_reg::REF_CLKDIV_EN | 1*ad9154_reg::RF_SYNC_EN |
1*ad9154_reg::DUTY_EN | 0*ad9154_reg::PD_CLK_REC | 1*ad9154_reg::DUTY_EN | 0*ad9154_reg::PD_CLK_REC |