|
3 | 3 | use crate::gpio::{Alternate, OpenDrain, Output, AF4};
|
4 | 4 | use crate::hal::blocking::i2c::{Read, Write, WriteRead};
|
5 | 5 | use crate::rcc::{Clocks, APB1R1};
|
| 6 | +#[cfg(feature = "stm32l4x5")] |
| 7 | +use crate::stm32::I2C3; |
6 | 8 | use crate::stm32::{i2c1, I2C1, I2C2};
|
7 | 9 | use crate::time::Hertz;
|
8 | 10 | use cast::u8;
|
@@ -75,8 +77,8 @@ impl StartCondition {
|
75 | 77 | use StartCondition::*;
|
76 | 78 | match self {
|
77 | 79 | FirstAndLast => w.start().start().autoend().automatic(),
|
78 |
| - First => w.start().start().reload().not_competed(), |
79 |
| - Middle => w.start().no_start().reload().not_competed(), |
| 80 | + First => w.start().start().reload().not_completed(), |
| 81 | + Middle => w.start().no_start().reload().not_completed(), |
80 | 82 | Last => w.start().no_start().autoend().automatic(),
|
81 | 83 | }
|
82 | 84 | }
|
@@ -538,10 +540,3 @@ pins!(I2C2, AF4, SCL: [PB13], SDA: [PB14]);
|
538 | 540 |
|
539 | 541 | #[cfg(feature = "stm32l4x5")]
|
540 | 542 | pins!(I2C3, AF4, SCL: [PC0], SDA: [PC1]);
|
541 |
| - |
542 |
| -#[cfg(feature = "stm32l4x5")] |
543 |
| -use crate::stm32::I2C3; |
544 |
| -#[cfg(feature = "stm32l4x5")] |
545 |
| -hal! { |
546 |
| - I2C3: (i2c3, i2c3en, i2c3rst), |
547 |
| -} |
0 commit comments