diff options
| author | Ulf Lilleengen <[email protected]> | 2022-09-29 11:02:43 +0200 |
|---|---|---|
| committer | Ulf Lilleengen <[email protected]> | 2022-09-29 11:27:46 +0200 |
| commit | 72c2e985bb481fbc2e138a8e98b9dbb27878f370 (patch) | |
| tree | f573324f2449b68b7b1fef579b755a67dbb406d7 /embassy-stm32/src/i2c | |
| parent | 77ece3f903735b50f265ddd43520c50e0f28c1a1 (diff) | |
Update embedded-hal versions and explicitly pin
Diffstat (limited to 'embassy-stm32/src/i2c')
| -rw-r--r-- | embassy-stm32/src/i2c/v1.rs | 6 | ||||
| -rw-r--r-- | embassy-stm32/src/i2c/v2.rs | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/embassy-stm32/src/i2c/v1.rs b/embassy-stm32/src/i2c/v1.rs index 9dc75789a..f39a37df6 100644 --- a/embassy-stm32/src/i2c/v1.rs +++ b/embassy-stm32/src/i2c/v1.rs | |||
| @@ -334,7 +334,7 @@ mod eh1 { | |||
| 334 | type Error = Error; | 334 | type Error = Error; |
| 335 | } | 335 | } |
| 336 | 336 | ||
| 337 | impl<'d, T: Instance> embedded_hal_1::i2c::blocking::I2c for I2c<'d, T> { | 337 | impl<'d, T: Instance> embedded_hal_1::i2c::I2c for I2c<'d, T> { |
| 338 | fn read(&mut self, address: u8, buffer: &mut [u8]) -> Result<(), Self::Error> { | 338 | fn read(&mut self, address: u8, buffer: &mut [u8]) -> Result<(), Self::Error> { |
| 339 | self.blocking_read(address, buffer) | 339 | self.blocking_read(address, buffer) |
| 340 | } | 340 | } |
| @@ -364,14 +364,14 @@ mod eh1 { | |||
| 364 | fn transaction<'a>( | 364 | fn transaction<'a>( |
| 365 | &mut self, | 365 | &mut self, |
| 366 | _address: u8, | 366 | _address: u8, |
| 367 | _operations: &mut [embedded_hal_1::i2c::blocking::Operation<'a>], | 367 | _operations: &mut [embedded_hal_1::i2c::Operation<'a>], |
| 368 | ) -> Result<(), Self::Error> { | 368 | ) -> Result<(), Self::Error> { |
| 369 | todo!(); | 369 | todo!(); |
| 370 | } | 370 | } |
| 371 | 371 | ||
| 372 | fn transaction_iter<'a, O>(&mut self, _address: u8, _operations: O) -> Result<(), Self::Error> | 372 | fn transaction_iter<'a, O>(&mut self, _address: u8, _operations: O) -> Result<(), Self::Error> |
| 373 | where | 373 | where |
| 374 | O: IntoIterator<Item = embedded_hal_1::i2c::blocking::Operation<'a>>, | 374 | O: IntoIterator<Item = embedded_hal_1::i2c::Operation<'a>>, |
| 375 | { | 375 | { |
| 376 | todo!(); | 376 | todo!(); |
| 377 | } | 377 | } |
diff --git a/embassy-stm32/src/i2c/v2.rs b/embassy-stm32/src/i2c/v2.rs index b7c89931c..89b52da98 100644 --- a/embassy-stm32/src/i2c/v2.rs +++ b/embassy-stm32/src/i2c/v2.rs | |||
| @@ -883,7 +883,7 @@ mod eh1 { | |||
| 883 | type Error = Error; | 883 | type Error = Error; |
| 884 | } | 884 | } |
| 885 | 885 | ||
| 886 | impl<'d, T: Instance> embedded_hal_1::i2c::blocking::I2c for I2c<'d, T, NoDma, NoDma> { | 886 | impl<'d, T: Instance> embedded_hal_1::i2c::I2c for I2c<'d, T, NoDma, NoDma> { |
| 887 | fn read(&mut self, address: u8, buffer: &mut [u8]) -> Result<(), Self::Error> { | 887 | fn read(&mut self, address: u8, buffer: &mut [u8]) -> Result<(), Self::Error> { |
| 888 | self.blocking_read(address, buffer) | 888 | self.blocking_read(address, buffer) |
| 889 | } | 889 | } |
| @@ -913,14 +913,14 @@ mod eh1 { | |||
| 913 | fn transaction<'a>( | 913 | fn transaction<'a>( |
| 914 | &mut self, | 914 | &mut self, |
| 915 | _address: u8, | 915 | _address: u8, |
| 916 | _operations: &mut [embedded_hal_1::i2c::blocking::Operation<'a>], | 916 | _operations: &mut [embedded_hal_1::i2c::Operation<'a>], |
| 917 | ) -> Result<(), Self::Error> { | 917 | ) -> Result<(), Self::Error> { |
| 918 | todo!(); | 918 | todo!(); |
| 919 | } | 919 | } |
| 920 | 920 | ||
| 921 | fn transaction_iter<'a, O>(&mut self, _address: u8, _operations: O) -> Result<(), Self::Error> | 921 | fn transaction_iter<'a, O>(&mut self, _address: u8, _operations: O) -> Result<(), Self::Error> |
| 922 | where | 922 | where |
| 923 | O: IntoIterator<Item = embedded_hal_1::i2c::blocking::Operation<'a>>, | 923 | O: IntoIterator<Item = embedded_hal_1::i2c::Operation<'a>>, |
| 924 | { | 924 | { |
| 925 | todo!(); | 925 | todo!(); |
| 926 | } | 926 | } |
