static void os_api_ST_PIT_Handler(void) { extern void OSTickISR(void); OS_API_Printf("\n\r -- os_api_ST_PIT_Handler --"); OSTickISR(); }
DWORD WINAPI OSTickW32( LPVOID lpParameter ) { OS_INIT_CRITICAL(); while(!OSTerminateTickW32) { OSTickISR(); #ifdef WIN_MM_TICK if( WaitForSingleObject(OSTickEventHandle, 5000) == WAIT_TIMEOUT) { #ifdef OS_CPU_TRACE OS_Printf("Error: MM OSTick Timeout!\n"); #endif } ResetEvent(OSTickEventHandle); #else Sleep(1000/OS_TICKS_PER_SEC); #endif } return 0; }