diff options
| author | Oleksandr Babak <alexanderbabak@proton.me> | 2025-05-15 15:00:23 +0200 |
|---|---|---|
| committer | Emil Fresk <emil.fresk@gmail.com> | 2025-06-18 18:49:41 +0000 |
| commit | a1eb285cacac9cdbc363fce9d0c0db14549c2a84 (patch) | |
| tree | 82bea12fce6877cd76e1addda6543258db06fcf5 | |
| parent | 5a2acec4426f5845cbfde4c3a990383145352eb7 (diff) | |
feat: add ui test
| -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 {}) + } +} |
