wrpll: swap helper/main si549 frequencies

This commit is contained in:
Sebastien Bourdeauducq 2019-12-09 19:49:34 +08:00
parent 150a02117c
commit 13486f3acf

View File

@ -293,10 +293,10 @@ pub fn init() {
unsafe { csr::wrpll::helper_reset_write(1); }
#[cfg(rtio_frequency = "125.0")]
let (m_hsdiv, m_lsdiv, m_fbdiv) = (0x05c, 0, 0x04b5badb98a);
#[cfg(rtio_frequency = "125.0")]
let (h_hsdiv, h_lsdiv, h_fbdiv) = (0x05c, 0, 0x04b5c447213);
#[cfg(rtio_frequency = "125.0")]
let (m_hsdiv, m_lsdiv, m_fbdiv) = (0x05c, 0, 0x04b5badb98a);
si549::program(i2c::Dcxo::Main, m_hsdiv, m_lsdiv, m_fbdiv)
.expect("cannot initialize main Si549");