Macro r3_core::kernel::cfg::attach_phase1
source · pub macro attach_phase1($params:expr, impl CfgPhase1<$System:ty> for $Ty:ty $(,)?) { ... }
Expand description
Implement CfgPhase1 on $Ty using the given $params: CfgPhase1Data<$System> to associate static data with the system
type $System.
This macro produces static items and a CfgPhase1<$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.