Greg Steiert
/
MAX3232_DEMO
Demonstration program for the MAX3232PMB1 Peripheral Module with the MAXREFDES72# Arduino to Pmod Adapter
Revision 1:6f1c3cb10608, committed 2014-07-20
- Comitter:
- gsteiert
- Date:
- Sun Jul 20 03:45:57 2014 +0000
- Parent:
- 0:803011eae289
- Commit message:
- Publishing MAX3232 Demo Code
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
diff -r 803011eae289 -r 6f1c3cb10608 main.cpp --- a/main.cpp Sat Apr 26 03:37:00 2014 +0000 +++ b/main.cpp Sun Jul 20 03:45:57 2014 +0000 @@ -3,13 +3,14 @@ MAX14661 mux(D14, D15); DigitalOut pinRTS(D13); -DigitalIn pinRX(D0); // Set as input to remove load from mbedTX +DigitalIn pinRX(D0); // Set as input to remove load from mbedTX DigitalIn pinTX(D1); // Set as input to remove load from mbedRX int main() { pinRTS=0; // Not Ready to Send // D0 (mbedTX) + PA2 (TXD) D1 (mbedRX) + PA3 (RXD) - mux.setAB((MAX14661::SW01 | MAX14661::SW13), (MAX14661::SW02 | MAX14661::SW12)); + mux.setAB((MAX14661::SW01 | MAX14661::SW13), + (MAX14661::SW02 | MAX14661::SW12)); pinRTS=1; // Ready to Send } \ No newline at end of file
diff -r 803011eae289 -r 6f1c3cb10608 mbed.bld --- a/mbed.bld Sat Apr 26 03:37:00 2014 +0000 +++ b/mbed.bld Sun Jul 20 03:45:57 2014 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/mbed/builds/6473597d706e \ No newline at end of file +http://mbed.org/users/mbed_official/code/mbed/builds/024bf7f99721 \ No newline at end of file