adding drboy
This commit is contained in:
parent
76ae7e35fe
commit
a33a57bd49
6 changed files with 59 additions and 36 deletions
|
@ -31,6 +31,18 @@ macro_rules! progmem {
|
|||
$($rest)*
|
||||
}
|
||||
};
|
||||
(
|
||||
$( #[$attr:meta] )*
|
||||
$v:vis $id:ident mut $name:ident: [$ty:ty; _] = $value:expr;
|
||||
$($rest:tt)*
|
||||
) => {
|
||||
$( #[$attr] )*
|
||||
#[link_section = ".progmem.data"]
|
||||
$v $id mut $name: [$ty; $value.len()] = $value;
|
||||
$crate::progmem!{
|
||||
$($rest)*
|
||||
}
|
||||
};
|
||||
() => ()
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue