Home |
RTTarget-32 Programming Manual Function RTCloseCOMPort System Management BIOS (SMBIOS) Advanced Programmable Interrupt Controller (APIC) |
Function RTCloseCOMPortOnce a COM port is no longer used, RTCloseCOMPort should be called to disable interrupts for the port and to restore the interrupt vector in the interrupt descriptor table. void RTCloseCOMPort(int Port); ParametersPortMust have value RT_COM1 .. RT_COM4. The port must have been initialized previously. If several COM ports sharing the IRQ have been initialized, it is important that RTCloseCOMPort is called in the reverse order as RTInitCOMPort. Otherwise, interrupt vectors are not restored correctly. Example:RTInitCOMPort(RT_COM1, ...); RTInitCOMPort(RT_COM3, ...); ... RTCloseCOMPort(RT_COM3); RTCloseCOMPort(RT_COM1);
|