Dynamic Tick API
Because hardware timers are programmed in the BSP, µC/OS-III only provides the function declarations for OS_DynTickGet()
and OS_DynTickSet()
; the BSP developer is required to implement them correctly to support Dynamic Tick. OSTimeDynTick()
is defined by the OS and called from the Tick ISR, similarly to OSTimeTick()
. However, unlike OSTimeTick()
it passes an argument to the OS: the number of ticks that have elapsed.