OSTimeDynTick

OSTimeDynTick

Description

Notifies the kernel that a dynamic tick has occurred, and that time delays and timeouts need to be updated. This function must be called from the dynamic tick ISR.

Files

os.h/os_time.c

Prototype

void OSTimeDynTick (OS_TICK ticks)

Arguments

ticks

Passed by the dynamic tick ISR, this is the number of OS Ticks elapsed since the last ISR. Normally, this would be the number of ticks as desired by OS_DynTickSet().

Returned Value

None

Required Configuration

OS_CFG_TICK_EN and OS_CFG_DYN_TICK_EN must be enabled in os_cfg.h.

Notes/Warnings

  1. To use the Dynamic Tick feature, the OS Board Support Package (BSP) should implement the Dynamic Tick API defined in Dynamic Tick BSP.

Example Usage

BSP_OS_DynTick_Handler() example usage
 OS_TICK TickDelta; /* As set by OS_DynTickSet() */     void BSP_OS_DynTick_Handler (void) { /* Clear interrupt source */ OSTimeDynTick(TickDelta); : : }