diff options
| -rw-r--r-- | rtic/ui/custom_section.rs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/rtic/ui/custom_section.rs b/rtic/ui/custom_section.rs new file mode 100644 index 0000000..2806780 --- /dev/null +++ b/rtic/ui/custom_section.rs @@ -0,0 +1,18 @@ +#![no_main] + +#[rtic::app(device = lm3s6965)] +mod app { + #[shared] + struct Shared { + #[link_section = ".custom_section"] + foo: (), + } + + #[local] + struct Local {} + + #[init] + fn init(_cx: init::Context) -> (Shared, Local) { + (Shared { foo: () }, Local {}) + } +} |
