Home |
RTKernel-32 Programming Manual Function CLKSetTimerIntVal |
Function CLKSetTimerIntValThis function changes the frequency of the timer interrupt: void CLKSetTimerIntVal(DWORD Micros); Parameter Micros should be supplied as microseconds. Module Clock will convert it to timer units and pass that value on to the timer interrupt driver. The actual value used will depend on the capabilities of the driver. The driver will round the value to the nearest value it can support. Alternatively, applications can also call the low-level clock driver routines _rtkCLKSetTimerInterval and _rtkCLKCurrentTimerInterval for a higher degree of control over the timer interrupt interval. However, this approach would not be portable between different timer interrupt drivers. It is recommended to immediately execute an RTKDelay(1) statement after changing the timer interrupt frequency. Some timer drivers are not able to deliver accurate results in the time between changing the timer frequency and the first timer interrupt.
|