Corrected compile errors.

This commit is contained in:
skarg
2011-08-19 17:40:29 +00:00
parent 9da1ab453a
commit 7f109b0abe
+15 -4
View File
@@ -182,7 +182,12 @@ bool RS485_Set_Baud_Rate(
return valid;
}
/* Transmits a Frame on the wire */
/****************************************************************************
* DESCRIPTION: Transmit a frame on the wire
* RETURN: none
* ALGORITHM: none
* NOTES: none
*****************************************************************************/
void RS485_Send_Frame(
volatile struct mstp_port_struct_t *mstp_port, /* port specific data */
uint8_t * buffer, /* frame to send (up to 501 bytes of data) */
@@ -211,7 +216,12 @@ void RS485_Send_Frame(
return;
}
/* called by timer, interrupt(?) or other thread */
/****************************************************************************
* DESCRIPTION: Get a byte of receive data
* RETURN: none
* ALGORITHM: none
* NOTES: none
*****************************************************************************/
void RS485_Check_UART_Data(
volatile struct mstp_port_struct_t *mstp_port)
{
@@ -241,9 +251,10 @@ void RS485_Check_UART_Data(
return;
}
if (FD_ISSET(RS485_Handle, &input)) {
count = read(RS485_Handle, buf, sizeof(buf));
FIFO_Add(&Rx_FIFO, &buf[0], count);
n = read(RS485_Handle, buf, sizeof(buf));
FIFO_Add(&Rx_FIFO, &buf[0], n);
}
}
}
}