void OSTimeTickHook (void) { #if OS_APP_HOOKS_EN > 0u App_TimeTickHook(); #endif #if OS_TMR_EN > 0u OSTmrCtr++; if (OSTmrCtr >= (OS_TICKS_PER_SEC / OS_TMR_CFG_TICKS_PER_SEC)) { OSTmrCtr = 0; OSTmrSignal(); } #endif }
void OSTimeTickHook (void) { #if OS_APP_HOOKS_EN > 0 App_TimeTickHook(); #endif #if OS_TMR_EN > 0 OSTmrCtr++; if (OSTmrCtr >= (OS_TICKS_PER_SEC / OS_TMR_CFG_TICKS_PER_SEC)) { OSTmrCtr = 0; OSTmrSignal(); } #endif #if OS_CPU_ARM_DCC_EN > 0 OSDCC_Handler(); #endif }