Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmarkov committed Aug 22, 2023
1 parent 9fc2e8c commit b61a2b1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
)]
#![allow(clippy::unused_unit)] // enumset

#[cfg(all(not(feature = "riscv-ulp-hal"), not(feature = "esp-idf-sys")))]
compile_error!("Exactly one of the features `esp-idf-sys` or `riscv-ulp-hal` needs to be enabled");

#[cfg(all(not(feature = "riscv-ulp-hal"), not(esp_idf_comp_driver_enabled)))]
compile_error!("esp-idf-hal requires the `driver` ESP-IDF component to be enabled");

Expand Down Expand Up @@ -68,6 +71,7 @@ pub mod rmt;
pub mod rom;
#[cfg(not(feature = "riscv-ulp-hal"))]
pub mod spi;
pub mod sys;
#[cfg(not(feature = "riscv-ulp-hal"))]
pub mod task;
#[cfg(not(feature = "riscv-ulp-hal"))]
Expand Down
5 changes: 5 additions & 0 deletions src/sys.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#[cfg(not(feature = "riscv-ulp-hal"))]
pub use esp_idf_sys::*;

#[cfg(feature = "riscv-ulp-hal")]
pub use crate::riscv_ulp_hal::sys::*;

0 comments on commit b61a2b1

Please sign in to comment.