forked from M-Labs/artiq
1
0
Fork 0

si5324: program I2C mux on Metlino

This commit is contained in:
Sebastien Bourdeauducq 2020-02-03 18:07:59 +08:00
parent ffb24e9fff
commit bf9f4e380a
1 changed files with 2 additions and 0 deletions

View File

@ -186,6 +186,8 @@ fn init() -> Result<()> {
i2c::pca9548_select(BUSNO, 0x70, 1 << 4)?; i2c::pca9548_select(BUSNO, 0x70, 1 << 4)?;
#[cfg(soc_platform = "sayma_rtm")] #[cfg(soc_platform = "sayma_rtm")]
i2c::pca9548_select(BUSNO, 0x77, 1 << 5)?; i2c::pca9548_select(BUSNO, 0x77, 1 << 5)?;
#[cfg(soc_platform = "metlino")]
i2c::pca9548_select(BUSNO, 0x70, 1 << 4)?;
#[cfg(soc_platform = "kc705")] #[cfg(soc_platform = "kc705")]
i2c::pca9548_select(BUSNO, 0x74, 1 << 7)?; i2c::pca9548_select(BUSNO, 0x74, 1 << 7)?;