Modified while testing the AT91SAM7S port. Needed to include MS/TP Silence Timer in ISR, and didn't want to call a function.

This commit is contained in:
skarg
2007-08-18 00:04:33 +00:00
parent 2cdf64ab90
commit 31d78501c0
2 changed files with 6 additions and 4 deletions
+3 -3
View File
@@ -745,16 +745,16 @@ bool MSTP_Master_Node_FSM(volatile struct mstp_port_struct_t * mstp_port)
mstp_port->master_state = MSTP_MASTER_STATE_DONE_WITH_TOKEN;
transition_now = true;
} else if (mstp_port->SilenceTimer > Tusage_delay) {
/* if we missed our timing deadline, another token will be sent */
/* Don't send it if we are too late in getting out. */
/* Don't worry. If we missed our timing deadline,
another token will be sent */
mstp_port->master_state = MSTP_MASTER_STATE_IDLE;
} else {
/* don't send it if we are too late in getting out */
uint8_t frame_type = mstp_port->OutputBuffer[2];
uint8_t destination = mstp_port->OutputBuffer[3];
RS485_Send_Frame(mstp_port,
(uint8_t *) & mstp_port->OutputBuffer[0], length);
mstp_port->FrameCount++;
/* last trasmitted frame type */
switch (frame_type) {
case FRAME_TYPE_BACNET_DATA_EXPECTING_REPLY:
/* SendAndWait */