MAX3100, an external serial device to add additional serial ports via SPI
Dependents: FLIGHT_CONTROL_AND_COMMUNICATIONS_SYSTEM
Diff: example2.h
- Revision:
- 1:46c8c60e744a
- Parent:
- 0:055897ab699b
--- a/example2.h Sun Jan 16 18:27:44 2011 +0000 +++ b/example2.h Mon Jan 17 01:14:16 2011 +0000 @@ -79,16 +79,14 @@ max2->enableTxIrq(); max1->printf("\nHello World.\n"); - max2->printf("\nHello World.\n"); + //max2->printf("\nHello World.\n"); // Any byte received on the "USB serial port" is sent to both MAX3100 devices. // Any byte received by a MAX3100 device is sent to the "USB serial port". while (1) { if (pc.readable()) { int c = pc.getc(); - while (!max1->writable()); - max1->putc(c); - while (!max2->writable()); + max1->putc(c); max2->putc(c); } if (max1->readable()) {