Serial Interrupt Library with mbed RTOS for multi-threading
Dependencies: buffered-serial1 mbed-rtos mbed
Fork of Serial_interrupts by
Revision 10:e489f1ee71d8, committed 2012-12-11
- Comitter:
- tylerjw
- Date:
- Tue Dec 11 04:21:06 2012 +0000
- Parent:
- 9:dbcc3caeba88
- Commit message:
- library publish;
Changed in this revision
buffered-serial1.lib | Show annotated file Show diff for this revision Revisions of this file |
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r dbcc3caeba88 -r e489f1ee71d8 buffered-serial1.lib --- a/buffered-serial1.lib Mon Dec 10 23:43:45 2012 +0000 +++ b/buffered-serial1.lib Tue Dec 11 04:21:06 2012 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/tylerjw/code/buffered-serial1/#707b9f3904dd +http://mbed.org/users/tylerjw/code/buffered-serial1/#8ccf9bb8dc65
diff -r dbcc3caeba88 -r e489f1ee71d8 main.cpp --- a/main.cpp Mon Dec 10 23:43:45 2012 +0000 +++ b/main.cpp Tue Dec 11 04:21:06 2012 +0000 @@ -1,10 +1,12 @@ #include "mbed.h" #include "buffered_serial.h" #include "rtos.h" +// Setup: connect p13 and p14 together to create a serial loopback // Sends out ASCII numbers in a loop and reads them back // If not the same number LED4 goes on // LED1 and LED2 indicate RX and TX interrupt routine activity // LED3 changing indicate main loop running +// if the program is working correctly you should see LED 1, 2, & 3 dimly lit and LED 4 off BufferedSerial device(p13,p14); // UART1 - p13, p14