mirror of
https://github.com/esp-rs/esp-hal.git
synced 2025-09-28 12:50:53 +00:00
Fix I2C HIL tests (#3405)
This commit is contained in:
parent
ffbcae162a
commit
ec6aec4b59
@ -188,15 +188,8 @@ mod tests {
|
||||
// This is still an issue on ESP32-S2
|
||||
#[cfg(not(esp32s2))]
|
||||
#[test]
|
||||
async fn async_test_timeout_when_scl_kept_low(_ctx: Context) {
|
||||
let mut i2c = I2c::new(
|
||||
unsafe { esp_hal::peripherals::I2C0::steal() },
|
||||
Config::default(),
|
||||
)
|
||||
.unwrap()
|
||||
.with_sda(unsafe { esp_hal::peripherals::GPIO4::steal() })
|
||||
.with_scl(unsafe { esp_hal::peripherals::GPIO5::steal() })
|
||||
.into_async();
|
||||
async fn async_test_timeout_when_scl_kept_low(ctx: Context) {
|
||||
let mut i2c = ctx.i2c.into_async();
|
||||
|
||||
esp_hal::gpio::InputSignal::I2CEXT0_SCL.connect_to(&esp_hal::gpio::Level::Low);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user