@@ -520,18 +520,21 @@ where
520
520
use crate :: gpio:: gpioa:: { PA10 , PA9 } ;
521
521
use crate :: gpio:: gpiob:: { PB10 , PB11 , PB6 , PB7 } ;
522
522
523
- #[ cfg( feature = "stm32l4x5" ) ]
523
+ #[ cfg( any ( feature = "stm32l4x3" , feature = " stm32l4x5") ) ]
524
524
use crate :: gpio:: gpioc:: { PC0 , PC1 } ;
525
525
526
+ #[ cfg( any( feature = "stm32l4x1" , feature = "stm32l4x3" , feature = "stm32l4x6" ) ) ]
527
+ use crate :: gpio:: gpiob:: PB8 ;
528
+
529
+ #[ cfg( any( feature = "stm32l4x1" , feature = "stm32l4x6" ) ) ]
530
+ use crate :: gpio:: gpiob:: { PB13 , PB14 , PB9 } ;
531
+
526
532
pins ! ( I2C1 , AF4 ,
527
533
SCL : [ PA9 , PB6 ] ,
528
534
SDA : [ PA10 , PB7 ] ) ;
529
535
530
536
pins ! ( I2C2 , AF4 , SCL : [ PB10 ] , SDA : [ PB11 ] ) ;
531
537
532
- #[ cfg( any( feature = "stm32l4x1" , feature = "stm32l4x6" ) ) ]
533
- use crate :: gpio:: gpiob:: { PB13 , PB14 , PB8 , PB9 } ;
534
-
535
538
#[ cfg( any( feature = "stm32l4x1" , feature = "stm32l4x6" ) ) ]
536
539
pins ! ( I2C1 , AF4 , SCL : [ PB8 ] , SDA : [ PB9 ] ) ;
537
540
@@ -540,3 +543,9 @@ pins!(I2C2, AF4, SCL: [PB13], SDA: [PB14]);
540
543
541
544
#[ cfg( feature = "stm32l4x5" ) ]
542
545
pins ! ( I2C3 , AF4 , SCL : [ PC0 ] , SDA : [ PC1 ] ) ;
546
+
547
+ #[ cfg( feature = "stm32l4x3" ) ]
548
+ pins ! ( I2C1 , AF4 , SCL : [ PB8 ] , SDA : [ ] ) ;
549
+
550
+ #[ cfg( feature = "stm32l4x3" ) ]
551
+ pins ! ( I2C2 , AF4 , SCL : [ PC0 ] , SDA : [ PC1 ] ) ;
0 commit comments