Exemple #1
0
static void SetCommPara()
{
    InitCommBuf();
    SetNewCommInt();
    InitComPort();
    InitCommBuf();
}
Exemple #2
0
/****************************************************************************
* DESCRIPTION: Initializes the RS485 hardware and variables, and starts in
*              receive mode.
* RETURN:      none
* ALGORITHM:   none
* NOTES:       none
*****************************************************************************/
void RS485_Initialize(
    void)
{
    /* baud rate */
    OpenComPort(RS485_Port);
    /* FIXME: change to numeric parameters */
    InitComPort("38400", '8', 'N', '1');

    return;
}