From a1eb285cacac9cdbc363fce9d0c0db14549c2a84 Mon Sep 17 00:00:00 2001 From: Oleksandr Babak Date: Thu, 15 May 2025 15:00:23 +0200 Subject: feat: add ui test --- rtic/ui/custom_section.rs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 rtic/ui/custom_section.rs 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 {}) + } +} -- cgit v1.2.3