Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: BufferedSerial mbed
Revision 0:9b5cfe4cb65e, committed 2015-02-16
- Comitter:
- mizmit1222
- Date:
- Mon Feb 16 05:50:47 2015 +0000
- Commit message:
- first commit (modem)
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/BufferedSerial.lib Mon Feb 16 05:50:47 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/sam_grove/code/BufferedSerial/#9ee15ae3d1a3
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Mon Feb 16 05:50:47 2015 +0000
@@ -0,0 +1,23 @@
+#include "mbed.h"
+#include "BufferedSerial.h"
+
+BufferedSerial pc(USBTX, USBRX);
+BufferedSerial uart3(PTC17, PTC16);
+
+int main() {
+ pc.puts("\r\nscissors\r\n");
+
+ uart3.baud(115200);
+ uart3.format(8, Serial::None, 1>>1);
+
+ while (true) {
+ if (pc.readable()) {
+ char c = pc.getc();
+ uart3.putc(c);
+ }
+ while (uart3.readable()) {
+ char d = uart3.getc();
+ pc.putc(d);
+ }
+ }
+}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Mon Feb 16 05:50:47 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/e188a91d3eaa \ No newline at end of file