- /* The timer is created as a one shot timer even though we want it to repeat\r
- at a given frequency. This is because Windows is not a real time environment,\r
- and attempting to set a high frequency periodic timer will result in event\r
- overruns. Therefore the timer is just reset after each time the pseudo \r
- interrupt handler has processed each tick event. */\r
- pvTimer = CreateWaitableTimer( NULL, TRUE, NULL );\r
- \r
- liDueTime.QuadPart = ( long long ) portTICK_RATE_MS * ll_ms_In_100ns_units;\r
-\r
- /* Block on the timer itself and the event mutex that grants access to the \r
- interrupt variables. */\r
- pvObjectList[ 0 ] = pvInterruptEventMutex;\r
- pvObjectList[ 1 ] = pvTimer;\r
-\r