@@ -520,18 +520,21 @@ where
520520use crate :: gpio:: gpioa:: { PA10 , PA9 } ;
521521use crate :: gpio:: gpiob:: { PB10 , PB11 , PB6 , PB7 } ;
522522
523- #[ cfg( feature = "stm32l4x5" ) ]
523+ #[ cfg( any ( feature = "stm32l4x3" , feature = " stm32l4x5") ) ]
524524use crate :: gpio:: gpioc:: { PC0 , PC1 } ;
525525
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+
526532pins ! ( I2C1 , AF4 ,
527533 SCL : [ PA9 , PB6 ] ,
528534 SDA : [ PA10 , PB7 ] ) ;
529535
530536pins ! ( I2C2 , AF4 , SCL : [ PB10 ] , SDA : [ PB11 ] ) ;
531537
532- #[ cfg( any( feature = "stm32l4x1" , feature = "stm32l4x6" ) ) ]
533- use crate :: gpio:: gpiob:: { PB13 , PB14 , PB8 , PB9 } ;
534-
535538#[ cfg( any( feature = "stm32l4x1" , feature = "stm32l4x6" ) ) ]
536539pins ! ( I2C1 , AF4 , SCL : [ PB8 ] , SDA : [ PB9 ] ) ;
537540
@@ -540,3 +543,9 @@ pins!(I2C2, AF4, SCL: [PB13], SDA: [PB14]);
540543
541544#[ cfg( feature = "stm32l4x5" ) ]
542545pins ! ( 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