mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-16 21:05:35 +01:00
feat: add ui test
This commit is contained in:
parent
5a2acec442
commit
a1eb285cac
1 changed files with 18 additions and 0 deletions
18
rtic/ui/custom_section.rs
Normal file
18
rtic/ui/custom_section.rs
Normal file
|
|
@ -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 {})
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue