Skip to content

Commit d311dc8

Browse files
committed
feat: add ui test
1 parent 8744689 commit d311dc8

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

rtic/ui/custom_section.rs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#![no_main]
2+
3+
#[rtic::app(device = lm3s6965)]
4+
mod app {
5+
#[shared]
6+
struct Shared {
7+
#[link_section = ".custom_section"]
8+
foo: (),
9+
}
10+
11+
#[local]
12+
struct Local {}
13+
14+
#[init]
15+
fn init(_cx: init::Context) -> (Shared, Local) {
16+
(Shared { foo: () }, Local {})
17+
}
18+
}

0 commit comments

Comments
 (0)