project to demonstrate a problem with K64F serial
Dependencies: EthernetInterface WebSocketClient mbed-rtos mbed
Revision 0:07c16f3f860a, committed 2014-06-22
- Comitter:
- emh203
- Date:
- Sun Jun 22 20:04:24 2014 +0000
- Commit message:
- 1st commit to demonstrate a problem
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/EthernetInterface.lib Sun Jun 22 20:04:24 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/EthernetInterface/#e6b79f0ccd95
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/WebSocketClient.lib Sun Jun 22 20:04:24 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/samux/code/WebSocketClient/#4567996414a5
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Sun Jun 22 20:04:24 2014 +0000
@@ -0,0 +1,36 @@
+#include "mbed.h"
+
+DigitalOut myled(LED_GREEN);
+Serial pc(USBTX, USBRX);
+
+
+void SerialPC_RxIRQ()
+{
+ while(pc.readable())
+ {
+
+ pc.putc(pc.getc());
+
+ }
+}
+
+int main()
+{
+ int i = 0;
+ pc.printf("\nHello World!\n");
+
+ // pc.attach(&SerialPC_RxIRQ ,pc.RxIrq);
+
+
+ while (true) {
+
+ if(pc.readable())
+ {
+ pc.putc(pc.getc());
+ }
+
+ myled = !myled;
+ }
+}
+
+
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed-rtos.lib Sun Jun 22 20:04:24 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed-rtos/#ac8d036315ed
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Sun Jun 22 20:04:24 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/024bf7f99721 \ No newline at end of file
Eli Hughes