Download STLite/OS20 Real-Time Kernel Reference Manual
Transcript
A.3 ST20-MC2 Plug-in timer functions mc2_timer_set Set timer to cause an event at a user specified time. Synopsis: #include <mc2timer.h> void mc2_timer_set(int Time); Arguments: int Time Value to set the Compare register to. Results: None. Errors: Undetermined behavior occurs as a result of not initializing the plug-in module. Description: This function writes the value Time to the Compare register within the programmable timer. As a consequence when the value in the Capture register becomes equal to the value in the Compare register a Capture Compare event occurs, this is achieved via the interrupt handler mc2_timer_interrupt. See also: mc2_timer_intialize mc2_timer_enable_int 252