Trimmed unnecessary code from MS/TP receive FSM. Updated rs485 for AVR and ARM.

This commit is contained in:
skarg
2007-09-07 05:42:53 +00:00
parent 8fb328ce23
commit 62a7475817
5 changed files with 29 additions and 63 deletions
+3 -4
View File
@@ -269,12 +269,11 @@ int main(void)
RS485_Initialize();
/* receive task */
for (;;) {
if (RS485_DataAvailable(&DataRegister)) {
fprintf(stderr,"%02X ",DataRegister);
} else if (RS485_ReceiveError()) {
if (RS485_ReceiveError()) {
fprintf(stderr,"ERROR ");
} else if (RS485_DataAvailable(&DataRegister)) {
fprintf(stderr,"%02X ",DataRegister);
}
}
}
#endif
-1
View File
@@ -36,7 +36,6 @@ extern "C" {
void RS485_Transmitter_Enable(bool enable);
/* NOTE: Only able to send up to 255 bytes at a time */
void RS485_Send_Data(
uint8_t * buffer, /* data to send */
uint16_t nbytes); /* number of bytes of data */