From 67fcbc394cfd011dcaada52855edfd3fd1cc5797 Mon Sep 17 00:00:00 2001 From: Borna Butkovic Date: Wed, 8 Nov 2023 00:07:25 +0100 Subject: [PATCH] impl Peripheral for I2s trait --- src/i2s.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/i2s.rs b/src/i2s.rs index 8aa14ade31a..d723aab3e40 100644 --- a/src/i2s.rs +++ b/src/i2s.rs @@ -22,7 +22,7 @@ use esp_idf_sys::{ #[cfg(not(esp_idf_version_major = "4"))] use crate::interrupt::asynch::HalIsrNotification; -use crate::{delay, io::EspIOError}; +use crate::{delay, io::EspIOError, peripheral::Peripheral}; // For v5+, we rely configuration options for PDM/TDM support. // For v4, we have to examine the chip type. @@ -481,7 +481,7 @@ pub mod config { } /// Trait implemented by I2S peripherals to obtain their port number. -pub trait I2s: Send + sealed::Sealed { +pub trait I2s: Peripheral

+ Send + sealed::Sealed { /// Return the port number for the peripheral. fn port() -> i2s_port_t; }