BL4S200 Serial Communication

I am trying to get two computers to talk to each other through the windows hyper terminal and I’m having some problems with the programming. I’m pretty new to C and any/all help would be greatly appreciated.

Here is what I have so far:

#include
#include

#class auto // Change local var storage default to “auto”

// define for use of BL4S210 (single 3-wire RS-232 port)
#define SER_NO_FLOWCONTROL

// include BLxS2xx series library
#use “BLxS2xx.lib”

// serial buffer size
#define EINBUFSIZE 63
#define EOUTBUFSIZE 15
#define FINBUFSIZE 63
#define FOUTBUFSIZE 15

// serial baud rate
#ifndef _232BAUD
#define _232BAUD 57600
#endif

main()
{
auto int i, input1, input2;
auto char input_char1, output_char1, input_char2, output_char2;

// initialize board (including serial ports)
brdInit();

// open serial port

serEopen(_232BAUD);
serFopen(_232BAUD);

// disable flow control
serMode(0);

// Clear serial data buffers
serEwrFlush();
serErdFlush();
serFwrFlush();
serFrdFlush();

serEputs("
Start
“);
serFputs(”
Start
");

while (1)
{
costate
  {
   	waitfor((input1=serEgetc()) != -1);	// wait for character from serial
		input_char1 = (char) input1;			// convert int to char

     waitfor(serFputc(output_char1));		// send character to serial
		if (output_char1 == '\r')

     {
     	putchar('

‘); // add newline character
waitfor(serEputc(’
'));
}
}
costate
{
waitfor((input2=serFgetc()) != -1); // wait for character from serial
input_char2 = (char) input2; // convert int to char

     waitfor(serEputc(output_char2));		// send character to serial
		if (output_char2 == '\r')

     {
     	putchar('

‘); // add newline character
waitfor(serFputc(’
'));
}

  }
}

}