diff options
| author | Wouter Geraedts <git@woutergeraedts.nl> | 2024-04-09 15:01:27 +0200 |
|---|---|---|
| committer | Henrik Tjäder <henrik@tjaders.com> | 2025-04-07 21:11:21 +0000 |
| commit | b97bc791260554edfd79dbd84c05815bef26b636 (patch) | |
| tree | a0ba46cb89b1a86c545e1be3ad9312efd92a8046 /rtic-macros/src/syntax | |
| parent | 5a8ff70f854c0d6fef3e5b7be12b750aab37b9f2 (diff) | |
Added esp32c6 support and example
Diffstat (limited to 'rtic-macros/src/syntax')
| -rw-r--r-- | rtic-macros/src/syntax/backend.rs | 7 | ||||
| -rw-r--r-- | rtic-macros/src/syntax/backend/esp32c6.rs | 16 |
2 files changed, 23 insertions, 0 deletions
diff --git a/rtic-macros/src/syntax/backend.rs b/rtic-macros/src/syntax/backend.rs index 460ef56..2d8d930 100644 --- a/rtic-macros/src/syntax/backend.rs +++ b/rtic-macros/src/syntax/backend.rs @@ -3,6 +3,7 @@ feature = "cortex-m-basepri", feature = "test-template", feature = "riscv-esp32c3", + feature = "riscv-esp32c6", feature = "riscv-slic", )))] compile_error!("No backend selected"); @@ -16,6 +17,9 @@ pub use template::*; #[cfg(feature = "riscv-esp32c3")] pub use esp32c3::*; +#[cfg(feature = "riscv-esp32c6")] +pub use esp32c6::*; + #[cfg(feature = "riscv-slic")] pub use riscv_slic::*; @@ -28,5 +32,8 @@ mod template; #[cfg(feature = "riscv-esp32c3")] mod esp32c3; +#[cfg(feature = "riscv-esp32c6")] +mod esp32c6; + #[cfg(feature = "riscv-slic")] mod riscv_slic; diff --git a/rtic-macros/src/syntax/backend/esp32c6.rs b/rtic-macros/src/syntax/backend/esp32c6.rs new file mode 100644 index 0000000..611df89 --- /dev/null +++ b/rtic-macros/src/syntax/backend/esp32c6.rs @@ -0,0 +1,16 @@ +use syn::{ + parse::{Parse, ParseStream}, + Error, Result, +}; + +#[derive(Debug)] +pub struct BackendArgs(); + +impl Parse for BackendArgs { + fn parse(input: ParseStream) -> Result<Self> { + Err(Error::new( + input.span(), + "esp32c6 backend does not accept any arguments", + )) + } +} |
