From 7edbeed07cda04b2f29baca1cd0ce64d6f86c344 Mon Sep 17 00:00:00 2001 From: bunnie Date: Thu, 11 Dec 2025 02:19:18 +0800 Subject: [PATCH] fix apis in baremetal --- baremetal/src/repl.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/baremetal/src/repl.rs b/baremetal/src/repl.rs index 0af815e5e..faf66a20d 100644 --- a/baremetal/src/repl.rs +++ b/baremetal/src/repl.rs @@ -702,7 +702,7 @@ impl Repl { }; let perclk = 100_000_000; // assume this value let mut i2c = unsafe { - bao1x_hal::udma::I2c::new_with_ifram( + bao1x_hal::udma::I2cDriver::new_with_ifram( i2c_channel, 400_000, perclk, @@ -849,7 +849,7 @@ impl Repl { ) }; let mut i2c = unsafe { - bao1x_hal::udma::I2c::new_with_ifram( + bao1x_hal::udma::I2cDriver::new_with_ifram( i2c_channel, 400_000, perclk,