Home |
RTKernel-32 Programming Manual Function RTPStartCOM |
Function RTPStartCOMRTPStartCOM starts profiling with interrupts generated by a free COM port in loop-back mode: void RTPStartCOM(UINT Flags, int IntsPerSecond, int COMPort, int IRQ, WORD IOBase); ParametersFlagsPlease see the Flags parameter of function RTPStart for details. IntsPerSecondThe number of interrupts to generate per second. Any divisor of 12900 inclusive is supported. The supplied value is rounded down to the nearest supported value. COMPortThe port to use to generate interrupts. Supported values are RTP_COM1, RTP_COM2, RTP_COM3, or RTP_COM4. This parameter is merely used to supply defaults for parameters IRQ and IOBase and is ignored if IRQ and IOBase are non-zero. IRQIRQ use by the desired COM port. If this parameter is 0, RTPStartCOM will use the default IRQ associated with the port specified in parameter COMPort. IOBaseI/O port address use by the desired COM port. If this parameter is 0, RTPStartCOM will use the default address associated with the port specified in parameter COMPort. This function programs the specified UART to generate interrupts with the requested rate and then calls RTPStart. No device or cable is required on the port. The transmitter and receiver of the UART are connected to each other by software and the UART is programmed to continuously send data to itself.
|