Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions esp-hal-common/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ fn main() {
// - 'dac'
// - 'gdma'
// - 'i2c1'
// - 'i2s'
// - 'mcpwm'
// - 'pdma'
// - 'rmt'
// - 'spi3'
Expand All @@ -39,9 +41,11 @@ fn main() {
vec![
"esp32",
"xtensa",
"mcpwm",
"multi_core",
"dac",
"i2c1",
"i2s",
"pdma",
"rmt",
"spi3",
Expand All @@ -56,6 +60,7 @@ fn main() {
"riscv",
"single_core",
"gdma",
"i2s",
"rmt",
"spi3",
"systimer",
Expand All @@ -69,6 +74,7 @@ fn main() {
"single_core",
"dac",
"i2c1",
"i2s",
"pdma",
"rmt",
"spi3",
Expand All @@ -83,6 +89,8 @@ fn main() {
"multi_core",
"gdma",
"i2c1",
"i2s",
"mcpwm",
"rmt",
"spi3",
"systimer",
Expand Down
8 changes: 3 additions & 5 deletions esp-hal-common/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ pub use self::{
timer::Timer,
};

pub mod sha;
pub mod analog;
pub mod clock;
pub mod delay;
Expand All @@ -57,12 +56,10 @@ pub mod dma;
pub mod embassy;
pub mod gpio;
pub mod i2c;

#[cfg(any(esp32c3, esp32s3, esp32, esp32s2))]
#[cfg(i2s)]
pub mod i2s;

pub mod ledc;
#[cfg(any(esp32, esp32s3))]
#[cfg(mcpwm)]
pub mod mcpwm;
#[cfg(usb_otg)]
pub mod otg_fs;
Expand All @@ -73,6 +70,7 @@ pub mod rng;
pub mod rom;
pub mod rtc_cntl;
pub mod serial;
pub mod sha;
pub mod spi;
pub mod system;
#[cfg(systimer)]
Expand Down