@@ -149,6 +149,10 @@ hal!(I2C1, enr, rstr, i2c1, i2c1en, i2c1rst);
149
149
hal ! ( I2C2 , enr, rstr, i2c2, i2c2en, i2c2rst) ;
150
150
hal ! ( I2C3 , enr, rstr, i2c3, i2c3en, i2c3rst) ;
151
151
152
+ // This peripheral is not present on
153
+ // STM32L471XX and STM32L431XX
154
+ // STM32L432XX and STM32l442XX
155
+ // STM32L486XX and STM32L476XX
152
156
#[ cfg( any( feature = "stm32l4x1" , feature = "stm32l4x2" , feature = "stm32l4x6" ) ) ]
153
157
hal ! ( I2C4 , enr2, rstr2, i2c4, i2c4en, i2c4rst) ;
154
158
@@ -484,17 +488,17 @@ mod stm32l4x1_pins {
484
488
485
489
pins ! ( I2C1 , AF4 , SCL : [ PB6 , PB8 ] , SDA : [ PB7 , PB9 ] ) ;
486
490
487
- // Not on STM32L471xx
491
+ // Not on STM32L471XX
488
492
pins ! ( I2C1 , AF4 , SCL : [ PA9 ] , SDA : [ PA10 ] ) ;
489
493
490
494
pins ! ( I2C2 , AF4 , SCL : [ PB10 , PB13 ] , SDA : [ PB11 , PB14 ] ) ;
491
495
492
496
pins ! ( I2C3 , AF4 , SCL : [ PC0 ] , SDA : [ PC1 ] ) ;
493
497
494
- // Not on STM32L471xx
498
+ // Not on STM32L471XX
495
499
pins ! ( I2C3 , AF4 , SCL : [ PA7 ] , SDA : [ PB4 ] ) ;
496
500
497
- // Both only on STM32L451XX
501
+ // Not on STM32L471XX and STM32L431XX
498
502
pins ! ( I2C4 , AF4 , SCL : [ PD12 ] , SDA : [ PD13 ] ) ;
499
503
pins ! ( I2C4 , AF3 , SCL : [ PB10 ] , SDA : [ PB11 ] ) ;
500
504
}
@@ -517,7 +521,8 @@ mod stm32l4x2_pins {
517
521
// Technically not present on STM32L432XX and STM32l442XX (pins missing from ref. manual)
518
522
pins ! ( I2C3 , AF4 , SCL : [ PC0 ] , SDA : [ PC1 ] ) ;
519
523
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
521
526
pins ! ( I2C4 , AF2 , SCL : [ PC0 ] , SDA : [ PC1 ] ) ;
522
527
pins ! ( I2C4 , AF3 , SCL : [ PB10 ] , SDA : [ PB11 ] ) ;
523
528
pins ! ( I2C4 , AF4 , SCL : [ PD12 ] , SDA : [ PD13 ] ) ;
0 commit comments