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
diff -r 000000000000 -r 07c16f3f860a EthernetInterface.lib --- /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
diff -r 000000000000 -r 07c16f3f860a WebSocketClient.lib --- /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
diff -r 000000000000 -r 07c16f3f860a main.cpp --- /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; + } +} + +
diff -r 000000000000 -r 07c16f3f860a mbed-rtos.lib --- /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
diff -r 000000000000 -r 07c16f3f860a mbed.bld --- /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