Macro r3_core::kernel::cfg::attach_phase3
source · pub macro attach_phase3($params:expr, impl KernelStatic<$System:ty> for $Ty:ty $(,)?) { ... }
Expand description
Implement KernelStatic
on $Ty
using the given $params:
CfgPhase3Data
<$System>
to associate static data with the system
type $System
.
This macro produces static
items and a KernelStatic<$System>
implementation for $Ty
. It doesn’t support generics, which means this
macro should be invoked in an application crate, where the concrete system
type is known.
See KernelStatic
’s documentation for an overview of the
configuration process and the traits involved.