From f21f08d32cc7aed67b0c6194af450f8cbbdb7761 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1niel=20Buga?= Date: Wed, 4 Sep 2024 15:10:02 +0200 Subject: [PATCH] Update tests --- hil-test/tests/gpio.rs | 2 +- hil-test/tests/i2c.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hil-test/tests/gpio.rs b/hil-test/tests/gpio.rs index c98dd3b428c..2b395de0cd1 100644 --- a/hil-test/tests/gpio.rs +++ b/hil-test/tests/gpio.rs @@ -74,7 +74,7 @@ mod tests { let (gpio1, gpio2) = hil_test::common_test_pins!(io); - let timg0 = TimerGroup::new(peripherals.TIMG0, &clocks); + let timg0 = TimerGroup::new(peripherals.TIMG0); esp_hal_embassy::init(timg0.timer0); Context { diff --git a/hil-test/tests/i2c.rs b/hil-test/tests/i2c.rs index 3cf18e43191..3e8e1ef4d5d 100644 --- a/hil-test/tests/i2c.rs +++ b/hil-test/tests/i2c.rs @@ -31,14 +31,14 @@ mod tests { #[init] fn init() -> Context { - let (peripherals, clocks) = esp_hal::init(esp_hal::Config::default()); + let peripherals = esp_hal::init(esp_hal::Config::default()); let io = Io::new(peripherals.GPIO, peripherals.IO_MUX); let (sda, scl) = hil_test::i2c_pins!(io); // Create a new peripheral object with the described wiring and standard // I2C clock speed: - let i2c = I2C::new(peripherals.I2C0, sda, scl, 100.kHz(), &clocks); + let i2c = I2C::new(peripherals.I2C0, sda, scl, 100.kHz()); Context { i2c } }