diff options
| author | onsdagens <pawdzi-7@student.ltu.se> | 2023-09-27 21:39:35 +0200 |
|---|---|---|
| committer | Emil Fresk <emil.fresk@gmail.com> | 2023-09-27 19:50:13 +0000 |
| commit | 2b2208e217a96086696bd6f36cff2a6cd4c4ac9f (patch) | |
| tree | c17d993fd70954663c0f0ffb6b6afed5228f9714 /rtic-macros/src/codegen/bindings.rs | |
| parent | 3b8d787a917a7a39b28bea85ba2b3a86539e0852 (diff) | |
esp32c3 support
Diffstat (limited to 'rtic-macros/src/codegen/bindings.rs')
| -rw-r--r-- | rtic-macros/src/codegen/bindings.rs | 14 |
1 files changed, 14 insertions, 0 deletions
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 |
