From 2ba09dd68d73d624af75be4880df36ce82efe2bc Mon Sep 17 00:00:00 2001 From: datdenkikniet Date: Thu, 13 Apr 2023 22:13:40 +0200 Subject: rtic-macros: wrap everything in macro_rules! to improve the error experience and royally **** up the DX experience (for lib.rs in rtic-macros, at least :P) --- rtic-macros/src/codegen/bindings.rs | 7 ------- 1 file changed, 7 deletions(-) (limited to 'rtic-macros/src/codegen') diff --git a/rtic-macros/src/codegen/bindings.rs b/rtic-macros/src/codegen/bindings.rs index 6c214cd..c328ee0 100644 --- a/rtic-macros/src/codegen/bindings.rs +++ b/rtic-macros/src/codegen/bindings.rs @@ -1,10 +1,3 @@ -#[cfg(not(any( - feature = "cortex-m-source-masking", - feature = "cortex-m-basepri", - feature = "test-template" -)))] -compile_error!("No backend selected"); - #[cfg(any(feature = "cortex-m-source-masking", feature = "cortex-m-basepri"))] pub use cortex::*; -- cgit v1.2.3 From 9e340c253ea5b31ae05f94a9ff8404b3023e3cda Mon Sep 17 00:00:00 2001 From: datdenkikniet Date: Thu, 13 Apr 2023 22:14:30 +0200 Subject: Remove unused --- rtic-macros/src/codegen/bindings/template.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rtic-macros/src/codegen') diff --git a/rtic-macros/src/codegen/bindings/template.rs b/rtic-macros/src/codegen/bindings/template.rs index a33bae8..690dfb0 100644 --- a/rtic-macros/src/codegen/bindings/template.rs +++ b/rtic-macros/src/codegen/bindings/template.rs @@ -43,6 +43,6 @@ pub fn interrupt_exit(_app: &App, _analysis: &CodegenAnalysis) -> Vec Vec { +pub fn async_prio_limit(_app: &App, _analysis: &CodegenAnalysis) -> Vec { vec![] } -- cgit v1.2.3