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 b32e27abdb
commit a2d2ec9238
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)?;