Type Alias StaticStoppedTimer

Source
pub type StaticStoppedTimer = StaticKernelObject<k_timer>;
Expand description

A statically allocated k_timer (StoppedTimer).

This is intended to be used from within the kobj_define! macro. It declares a static k_timer that will be properly registered with the Zephyr object system (and can be used from userspace). Call [init_once] to get the StoppedTimer that it represents.

Aliased Type§

struct StaticStoppedTimer {
    pub value: UnsafeCell<k_timer>,
    pub init: AtomicUsize,
}

Fields§

§value: UnsafeCell<k_timer>

The underlying zephyr kernel object.

§init: AtomicUsize

Initialization status of this object. Most objects will start uninitialized and be initialized manually.