Home |
RTKernel-32 Programming Manual Multitasking, Real-Time, and RTKernel-32 Alternate APIs for RTKernel-32 Driver CLKAPIC Preconfigured Driver Library Drvrt32.lib |
Driver CLKAPICThis driver uses the timer of the local APIC of Pentium class targets to generate timer interrupts. It supports timer interrupt intervals from 1 microsecond to several minutes. The driver needs to know the external bus clock the system is running at. It uses RTSMBIOSGetCPUSpeed, and, if that fails, RTSMBIOSGetBusSpeed and RTMPBusFromCPUClock to determine the clock frequency. If these functions also fail, 200Mhz is assumed and the application should call CLKSetResolution and CLKSetTimerIntVal after RTKernelInit to correctly set up the timer. The default timer interrupt interval is set to 10ms. This driver switches the target to APIC mode using RTMPSetAPICMode(0). If that should fail, the driver will use the legacy PC timer as a source of timer interrupts instead. The default timer interrupt interval is also set to 10ms in this case. The CLKAPIC clock driver is the recommended clock driver for the multiprocessor kernel. Requirements: A target with an MP Floating Pointer Structure.
|