Macro rp6::avr::device::register::reg_list

source ·
macro_rules! reg_list {
    ($($(#[$attr: meta])* $reg_name: ident),* $(,)?) => { ... };
}
Expand description

Convenience macro to define multiple registers at once. Requires you to have reg! and register::$reg_name from this module in scope. Additionally, one can provide documentation for each list element as usual.

Example: To define DDRA, PORTA and PINA, use reg_list!(DDRA, PORTA, PINA);.