Skip to content

Commit 29a6237

Browse files
committed
i2c unmacro
1 parent 520ce4d commit 29a6237

File tree

2 files changed

+389
-456
lines changed

2 files changed

+389
-456
lines changed

examples/i2c4_bdma.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ fn main() -> ! {
5858
let gpiod = dp.GPIOD.split(ccdr.peripheral.GPIOD);
5959

6060
// Configure the SCL and the SDA pin for our I2C bus
61-
let scl = gpiod.pd12.into_alternate().set_open_drain();
62-
let sda = gpiod.pd13.into_alternate().set_open_drain();
61+
let scl = gpiod.pd12;
62+
let sda = gpiod.pd13;
6363

6464
let mut i2c = dp.I2C4.i2c(
6565
(scl, sda),

0 commit comments

Comments
 (0)