Module peripherals::attributes[][src]

Expand description

Example of attribute in macros

By default, attributes exand on generated types and fields, and not expand on generated impls. This shows how it can be changed.

The macro invocations can be seen in the source code. This module exists only in documentation and tests

Modules

device

An example of where attributes get expanded in device! macros

field_type

An example of where attributes get expanded in field_type! macros

periph

An example of where attributes get expanded in periph! macros

register

An example of where attributes get expanded in register! macros