Code to load a LPC1114 over tx/rx. I have only tested with a 1114 chip but it should work with other LPC uControllers
Dependencies: DirectoryList MODSERIAL mbed
Fork of ika_shouyu_poppoyaki by
Diff: serial_utilities.cpp
- Revision:
- 39:f68f9fa1e88e
- Parent:
- 30:e0d7524661ca
- Child:
- 48:99cfe3a929ea
--- a/serial_utilities.cpp Fri Sep 27 14:48:17 2013 +0000 +++ b/serial_utilities.cpp Sun Sep 29 03:54:06 2013 +0000 @@ -101,9 +101,10 @@ timeout_flag = 0; timeout.attach( &set_flag, 1 ); - for ( i = 0; i < length; i++ ) { + for ( i = 0; i < length; ) { if ( target.readable() ) { *b++ = target.getc(); + i++; toggle_led( 1 ); }