update for fixed pca954x api

This commit is contained in:
mwojcik 2022-02-11 13:52:41 +08:00
parent ef14911901
commit 7204cebf0a
3 changed files with 13 additions and 13 deletions

View File

@ -169,11 +169,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1644552039, "lastModified": 1644558411,
"narHash": "sha256-fR5qrCLgn/fJN59HQ1/YFv/8w4FMXS/g5UwgBen1G3w=", "narHash": "sha256-PC/gVlVLmtZCv1Tw8Xz5ZCTxqmS2osncg5hlt9BoJ/8=",
"ref": "master", "ref": "master",
"rev": "26ab2927b9cec5abb9fcccd85f086971bd73dbe1", "rev": "3e95df1f640aa761740feaf9eec797acb58dd942",
"revCount": 603, "revCount": 604,
"type": "git", "type": "git",
"url": "https://git.m-labs.hk/m-labs/zynq-rs" "url": "https://git.m-labs.hk/m-labs/zynq-rs"
}, },

12
src/Cargo.lock generated
View File

@ -224,7 +224,7 @@ dependencies = [
[[package]] [[package]]
name = "libasync" name = "libasync"
version = "0.0.0" version = "0.0.0"
source = "git+https://git.m-labs.hk/M-Labs/zynq-rs.git#26ab2927b9cec5abb9fcccd85f086971bd73dbe1" source = "git+https://git.m-labs.hk/M-Labs/zynq-rs.git#3e95df1f640aa761740feaf9eec797acb58dd942"
dependencies = [ dependencies = [
"embedded-hal", "embedded-hal",
"libcortex_a9", "libcortex_a9",
@ -256,7 +256,7 @@ dependencies = [
[[package]] [[package]]
name = "libboard_zynq" name = "libboard_zynq"
version = "0.0.0" version = "0.0.0"
source = "git+https://git.m-labs.hk/M-Labs/zynq-rs.git#26ab2927b9cec5abb9fcccd85f086971bd73dbe1" source = "git+https://git.m-labs.hk/M-Labs/zynq-rs.git#3e95df1f640aa761740feaf9eec797acb58dd942"
dependencies = [ dependencies = [
"bit_field", "bit_field",
"embedded-hal", "embedded-hal",
@ -281,7 +281,7 @@ dependencies = [
[[package]] [[package]]
name = "libconfig" name = "libconfig"
version = "0.1.0" version = "0.1.0"
source = "git+https://git.m-labs.hk/M-Labs/zynq-rs.git#26ab2927b9cec5abb9fcccd85f086971bd73dbe1" source = "git+https://git.m-labs.hk/M-Labs/zynq-rs.git#3e95df1f640aa761740feaf9eec797acb58dd942"
dependencies = [ dependencies = [
"core_io", "core_io",
"fatfs", "fatfs",
@ -292,7 +292,7 @@ dependencies = [
[[package]] [[package]]
name = "libcortex_a9" name = "libcortex_a9"
version = "0.0.0" version = "0.0.0"
source = "git+https://git.m-labs.hk/M-Labs/zynq-rs.git#26ab2927b9cec5abb9fcccd85f086971bd73dbe1" source = "git+https://git.m-labs.hk/M-Labs/zynq-rs.git#3e95df1f640aa761740feaf9eec797acb58dd942"
dependencies = [ dependencies = [
"bit_field", "bit_field",
"libregister", "libregister",
@ -308,7 +308,7 @@ checksum = "c7d73b3f436185384286bd8098d17ec07c9a7d2388a6599f824d8502b529702a"
[[package]] [[package]]
name = "libregister" name = "libregister"
version = "0.0.0" version = "0.0.0"
source = "git+https://git.m-labs.hk/M-Labs/zynq-rs.git#26ab2927b9cec5abb9fcccd85f086971bd73dbe1" source = "git+https://git.m-labs.hk/M-Labs/zynq-rs.git#3e95df1f640aa761740feaf9eec797acb58dd942"
dependencies = [ dependencies = [
"bit_field", "bit_field",
"vcell", "vcell",
@ -318,7 +318,7 @@ dependencies = [
[[package]] [[package]]
name = "libsupport_zynq" name = "libsupport_zynq"
version = "0.0.0" version = "0.0.0"
source = "git+https://git.m-labs.hk/M-Labs/zynq-rs.git#26ab2927b9cec5abb9fcccd85f086971bd73dbe1" source = "git+https://git.m-labs.hk/M-Labs/zynq-rs.git#3e95df1f640aa761740feaf9eec797acb58dd942"
dependencies = [ dependencies = [
"cc", "cc",
"compiler_builtins", "compiler_builtins",

View File

@ -188,12 +188,12 @@ fn init(i2c: &mut I2c, timer: &mut GlobalTimer) -> Result<()> {
#[cfg(feature = "target_kasli_soc")] #[cfg(feature = "target_kasli_soc")]
{ {
i2c.pca954x_select(0x70, 0)?; i2c.pca954x_select(0x70, None)?;
i2c.pca954x_select(0x71, 3)?; i2c.pca954x_select(0x71, Some(3))?;
} }
#[cfg(feature = "target_zc706")] #[cfg(feature = "target_zc706")]
{ {
i2c.pca954x_select(0x74, 4)?; i2c.pca954x_select(0x74, Some(4))?;
} }
if ident(i2c)? != 0x0182 { if ident(i2c)? != 0x0182 {