Skip to content

Commit 03ca902

Browse files
author
Bob McWhirter
committed
Add HAL for i2c3 available on the stm32l4s5 family.
1 parent b954de7 commit 03ca902

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/i2c.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,7 @@ hal! {
325325

326326
use crate::gpio::gpioa::{PA10, PA9};
327327
use crate::gpio::gpiob::{PB10, PB11, PB6, PB7};
328+
use crate::gpio::gpioc::{PC0, PC1};
328329

329330
pins!(I2C1, AF4,
330331
SCL: [PA9, PB6],
@@ -340,3 +341,13 @@ pins!(I2C1, AF4, SCL: [PB8], SDA: [PB9]);
340341

341342
#[cfg(any(feature = "stm32l4x1", feature = "stm32l4x6"))]
342343
pins!(I2C2, AF4, SCL: [PB13], SDA: [PB14]);
344+
345+
#[cfg(feature = "stm32l4x5")]
346+
pins!(I2C3, AF4, SCL: [PC0], SDA: [PC1]);
347+
348+
#[cfg(feature = "stm32l4x5")]
349+
use crate::stm32::I2C3;
350+
#[cfg(feature = "stm32l4x5")]
351+
hal! {
352+
I2C3: (i2c3, i2c3en, i2c3rst),
353+
}

0 commit comments

Comments
 (0)