Home |
RTKernel-32 Programming Manual Function COMEnableInterrupt Function COMWaitSendBufferEmpty |
Function COMEnableInterruptCOMEnableInterrupt enables interrupt-driven communication for a particular port: void COMEnableInterrupt(int Port, unsigned BufferSize); ParametersPortThe port to configure. BuffersizeThe buffer size in bytes. COMEnableInterrupt enables interrupts for sending/receiving and allocates send and receive mailboxes with BufferSize slots each if no buffers have been allocated yet. If you need different sizes for receive and send buffers, call COMAllocateBuffers first. If the port uses a 16550A UART, the interrupt trigger level defaults to 8 characters.
|