mirror of
https://github.com/esp-rs/esp-idf-hal.git
synced 2025-09-27 04:10:30 +00:00
Always use the core prelude
This commit is contained in:
parent
201ef13ab6
commit
f728cf6863
@ -65,7 +65,6 @@ pub mod config {
|
|||||||
))]
|
))]
|
||||||
pub use super::tdm::config::*;
|
pub use super::tdm::config::*;
|
||||||
|
|
||||||
use core::convert::TryFrom;
|
|
||||||
use esp_idf_sys::{
|
use esp_idf_sys::{
|
||||||
i2s_mclk_multiple_t, i2s_mclk_multiple_t_I2S_MCLK_MULTIPLE_128,
|
i2s_mclk_multiple_t, i2s_mclk_multiple_t_I2S_MCLK_MULTIPLE_128,
|
||||||
i2s_mclk_multiple_t_I2S_MCLK_MULTIPLE_256, i2s_mclk_multiple_t_I2S_MCLK_MULTIPLE_384,
|
i2s_mclk_multiple_t_I2S_MCLK_MULTIPLE_256, i2s_mclk_multiple_t_I2S_MCLK_MULTIPLE_384,
|
||||||
|
@ -7,10 +7,7 @@ use esp_idf_sys::*;
|
|||||||
pub(super) mod config {
|
pub(super) mod config {
|
||||||
#[allow(unused)]
|
#[allow(unused)]
|
||||||
use crate::{gpio::*, i2s::config::*, peripheral::*};
|
use crate::{gpio::*, i2s::config::*, peripheral::*};
|
||||||
use core::{
|
use core::ops::{BitAnd, BitAndAssign, BitOr, BitOrAssign, Not};
|
||||||
convert::TryFrom,
|
|
||||||
ops::{BitAnd, BitAndAssign, BitOr, BitOrAssign, Not},
|
|
||||||
};
|
|
||||||
use esp_idf_sys::*;
|
use esp_idf_sys::*;
|
||||||
|
|
||||||
/// Automatic total number of slots, equivalent to the maximum active slot number.
|
/// Automatic total number of slots, equivalent to the maximum active slot number.
|
||||||
|
@ -52,7 +52,6 @@
|
|||||||
//! ahead of time.
|
//! ahead of time.
|
||||||
|
|
||||||
use core::cell::UnsafeCell;
|
use core::cell::UnsafeCell;
|
||||||
use core::convert::{TryFrom, TryInto};
|
|
||||||
use core::marker::PhantomData;
|
use core::marker::PhantomData;
|
||||||
use core::time::Duration;
|
use core::time::Duration;
|
||||||
use core::{ptr, slice};
|
use core::{ptr, slice};
|
||||||
|
@ -13,8 +13,6 @@
|
|||||||
//! let frequency_hz_1 = 1.Hz() + frequency_khz_3.into(),
|
//! let frequency_hz_1 = 1.Hz() + frequency_khz_3.into(),
|
||||||
//! ```
|
//! ```
|
||||||
|
|
||||||
use core::convert::TryFrom;
|
|
||||||
use core::convert::TryInto;
|
|
||||||
use core::fmt;
|
use core::fmt;
|
||||||
|
|
||||||
pub type ValueType = u32;
|
pub type ValueType = u32;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user