Skip to content

Commit e689abd

Browse files
committed
Add more comments
1 parent 5e15dc7 commit e689abd

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

src/i2c.rs

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,10 @@ hal!(I2C1, enr, rstr, i2c1, i2c1en, i2c1rst);
149149
hal!(I2C2, enr, rstr, i2c2, i2c2en, i2c2rst);
150150
hal!(I2C3, enr, rstr, i2c3, i2c3en, i2c3rst);
151151

152+
// This peripheral is not present on
153+
// STM32L471XX and STM32L431XX
154+
// STM32L432XX and STM32l442XX
155+
// STM32L486XX and STM32L476XX
152156
#[cfg(any(feature = "stm32l4x1", feature = "stm32l4x2", feature = "stm32l4x6"))]
153157
hal!(I2C4, enr2, rstr2, i2c4, i2c4en, i2c4rst);
154158

@@ -484,17 +488,17 @@ mod stm32l4x1_pins {
484488

485489
pins!(I2C1, AF4, SCL: [PB6, PB8], SDA: [PB7, PB9]);
486490

487-
// Not on STM32L471xx
491+
// Not on STM32L471XX
488492
pins!(I2C1, AF4, SCL: [PA9], SDA: [PA10]);
489493

490494
pins!(I2C2, AF4, SCL: [PB10, PB13], SDA: [PB11, PB14]);
491495

492496
pins!(I2C3, AF4, SCL: [PC0], SDA: [PC1]);
493497

494-
// Not on STM32L471xx
498+
// Not on STM32L471XX
495499
pins!(I2C3, AF4, SCL: [PA7], SDA: [PB4]);
496500

497-
// Both only on STM32L451XX
501+
// Not on STM32L471XX and STM32L431XX
498502
pins!(I2C4, AF4, SCL: [PD12], SDA: [PD13]);
499503
pins!(I2C4, AF3, SCL: [PB10], SDA: [PB11]);
500504
}
@@ -517,7 +521,8 @@ mod stm32l4x2_pins {
517521
// Technically not present on STM32L432XX and STM32l442XX (pins missing from ref. manual)
518522
pins!(I2C3, AF4, SCL: [PC0], SDA: [PC1]);
519523

520-
// All three only on STM32l452XX and STM32l462XX
524+
// Technically not present on STM32L432XX and STM32l442XX (pins missing from ref. manual)
525+
// Not present on STM32L412XX and STM32L422XX
521526
pins!(I2C4, AF2, SCL: [PC0], SDA: [PC1]);
522527
pins!(I2C4, AF3, SCL: [PB10], SDA: [PB11]);
523528
pins!(I2C4, AF4, SCL: [PD12], SDA: [PD13]);

0 commit comments

Comments
 (0)