Home |
RTKernel-32 Programming Manual Function COMSetBoardType Function COMWaitSendBufferEmpty |
Function COMSetBoardTypeCOMSetBoardType can define the properties of an interrupt sharing serial I/O board: void COMSetBoardType(int Type, unsigned Address, int IRQ, int FirstPort); If you intend to use a generic, Hostess, or DigiBoard card, its parameters must be defined using this function. ParametersTypeMay assume one of the values COM_BOARD_GENERIC, COM_BOARD_DIGIBOARD, COM_BOARD_HOSTESS, or COM_BOARD_HOSTESS_16. AddressSpecifies the I/O address of the board's status or vector register. For the COM_BOARD_GENERIC type, parameter Address is interpreted as the number of ports on the card. IRQSpecifies the interrupt the card will use to signal events. FirstPortThe port number you want to assign to the board's first port. If, for example, you want to address the ports on a board with four ports as COM5, COM6, COM7, and COM8, FirstPort should be set to COM5 (value 4). For additional instructions on how to use COM boards with RTCom, please refer to section RTCom.
|