logo
pub struct Cfg<'c, C: CfgBase> { /* private fields */ }
Expand description

Wraps a raw_cfg::CfgBase to provide higher-level services.

Implementations

Mutably borrow the underlying C.

Specify the number of task priority levels.

The RAM consumption by task ready queues is expected to be proportional to the number of task priority levels. In addition, the scheduler may be heavily optimized for the cases where the number is very small (e.g., < 16). This optimization can provide a significant performance improvement if the target processor does not have a CTZ (count trailing zero) instruction, barrel shifter, or hardware multiplier.

Kernels may set an arbitrary upper bound for the number of task priority levels.

Finalize self for the phase 1 configuration.

This method constructs CfgPhase1Data, which must be passed to attach_phase1! to proceed with the kernel-independent configuration process.

Finalize self for the phase 2 configuration.

This method constructs CfgPhase2Data, which must be passed to attach_phase2! to proceed with the kernel-independent configuration process.

Perform additional finalization tasks for interrupt line configuration.

This method must be called before Self::finish_phase3 if C implements CfgInterruptLine.

Finalize self for the phase 3 configuration.

This method makes the last set of changes to the referenced C: impl CfgBase. It also constructs CfgPhase3Data, which must be passed to attach_phase3! to complete the kernel-independent configuration process.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.