Skip to main content

arm_hard_kernel_timer

Function arm_hard_kernel_timer 

Source
pub fn arm_hard_kernel_timer(
    handle: HardKernelTimerHandle,
    deadline: MonotonicDeadline,
) -> Result<(), TaskError>
Expand description

Arms an inactive hard timer or requests its next arm during execution.

A request during execution takes precedence over the callback’s return action. An already queued timer must be disarmed before it can be armed. A registration with accepted cancellation cannot be rearmed.

The registration identity and callback allocation are reused. A caller that moves the consumer to another CPU must destroy the old registration and create a new owner-local one rather than remotely programming a physical comparator.