macro_rules! reg { ($(#[$attr: meta])* $reg_name: ident) => { ... }; ($(#[$attr: meta])* $reg_name: ident, $reg_type: ty) => { ... }; }
Expand description
Convenience macro to define a register struct directly from avrd::<device>::* identifiers.
Requires you to have Register from this module and use avrd::<your-device> as avr_device in
scope. By default, $reg_type is set to u8. Additionally, one can provide documentation for
the Register struct inside the macro’s parenthesis.