Updated the dlmstp and rx_fsm projects under Win32. Passing tokens and NPDU on MS/TP at 38400.

This commit is contained in:
skarg
2007-07-02 23:09:22 +00:00
parent 8c3ddc8a06
commit d6851d7320
4 changed files with 67 additions and 16 deletions
+8 -2
View File
@@ -125,8 +125,10 @@ static void print_received_packet(
fprintf(stderr,"\n");
}
static char *Network_Interface = NULL;
/* simple test to packetize the data and print it */
int main(void)
int main(int argc, char *argv[])
{
volatile struct mstp_port_struct_t *mstp_port;
int rc = 0;
@@ -135,8 +137,12 @@ int main(void)
/* mimic our pointer in the state machine */
mstp_port = &MSTP_Port;
/* argv has the "COM4" or some other device */
if (argc > 1) {
Network_Interface = argv[1];
}
/* initialize our interface */
RS485_Set_Interface("COM4");
RS485_Set_Interface(Network_Interface);
RS485_Set_Baud_Rate(38400);
RS485_Initialize();
MSTP_Init(mstp_port);