Bump i2c_pio to an API with better inference.

This commit is contained in:
Wilfried Chauveau 2021-12-05 12:17:34 +00:00 committed by 9names
parent 0e7abdc705
commit b363038477
2 changed files with 2 additions and 2 deletions

View file

@ -38,7 +38,7 @@ panic-halt= "0.2.0"
embedded-hal ="0.2.5" embedded-hal ="0.2.5"
cortex-m-rtic = "0.6.0-alpha.5" cortex-m-rtic = "0.6.0-alpha.5"
nb = "1.0" nb = "1.0"
i2c-pio = { git = "https://github.com/ithinuel/i2c-pio-rs", rev = "fb6167d02b7fbc46a83f344f5242823bcd16e271" } i2c-pio = { git = "https://github.com/ithinuel/i2c-pio-rs", rev = "afc2dad0e955da2b712d7f7cd78c7af88ddc6a45" }
[features] [features]
default = ["boot2", "rt"] default = ["boot2", "rt"]

View file

@ -103,7 +103,7 @@ fn main() -> ! {
let (mut pio, sm0, _, _, _) = pac.PIO0.split(&mut pac.RESETS); let (mut pio, sm0, _, _, _) = pac.PIO0.split(&mut pac.RESETS);
let mut i2c_pio = i2c_pio::I2C::<_, _, _, _, hal::gpio::FunctionPio0>::new( let mut i2c_pio = i2c_pio::I2C::new(
&mut pio, &mut pio,
pins.gpio20, pins.gpio20,
pins.gpio21, pins.gpio21,