adding drboy

This commit is contained in:
Zenn 2023-08-19 18:21:14 +02:00
parent 76ae7e35fe
commit a33a57bd49
6 changed files with 59 additions and 36 deletions

View file

@ -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)*
}
};
() => ()
}