From 2b2208e217a96086696bd6f36cff2a6cd4c4ac9f Mon Sep 17 00:00:00 2001 From: onsdagens Date: Wed, 27 Sep 2023 21:39:35 +0200 Subject: esp32c3 support --- rtic-macros/src/codegen/bindings.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'rtic-macros/src/codegen/bindings.rs') diff --git a/rtic-macros/src/codegen/bindings.rs b/rtic-macros/src/codegen/bindings.rs index c328ee0..60605f3 100644 --- a/rtic-macros/src/codegen/bindings.rs +++ b/rtic-macros/src/codegen/bindings.rs @@ -1,3 +1,11 @@ +#[cfg(not(any( + feature = "cortex-m-source-masking", + feature = "cortex-m-basepri", + feature = "test-template", + feature = "riscv-esp32c3" +)))] +compile_error!("No backend selected"); + #[cfg(any(feature = "cortex-m-source-masking", feature = "cortex-m-basepri"))] pub use cortex::*; @@ -9,3 +17,9 @@ mod cortex; #[cfg(feature = "test-template")] mod template; + +#[cfg(feature = "riscv-esp32c3")] +pub use esp32c3::*; + +#[cfg(feature = "riscv-esp32c3")] +mod esp32c3; \ No newline at end of file -- cgit v1.2.3