From a7653cc05092aa5b009172c531e4f729c678a858 Mon Sep 17 00:00:00 2001 From: Vixu Date: Thu, 8 Jun 2023 13:44:49 +0200 Subject: allow init and idle to be externed --- rtic-macros/src/syntax/ast.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'rtic-macros/src/syntax/ast.rs') diff --git a/rtic-macros/src/syntax/ast.rs b/rtic-macros/src/syntax/ast.rs index 3f4956c..f0067b8 100644 --- a/rtic-macros/src/syntax/ast.rs +++ b/rtic-macros/src/syntax/ast.rs @@ -91,6 +91,9 @@ pub struct Init { /// The name of the user provided local resources struct pub user_local_struct: Ident, + + /// The init function is declared externally + pub is_extern: bool, } /// `init` context metadata @@ -127,6 +130,9 @@ pub struct Idle { /// The statements that make up this `idle` function pub stmts: Vec, + + /// The idle function is declared externally + pub is_extern: bool, } /// `idle` context metadata -- cgit v1.2.3