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
serial_utilities.h@34:eaca33d3e632, 2013-09-26 (annotated)
- Committer:
- okano
- Date:
- Thu Sep 26 11:51:03 2013 +0000
- Revision:
- 34:eaca33d3e632
- Parent:
- 30:e0d7524661ca
[1]; fix: verification function was having a bug. 3/4 of the code was having chance of verification fail.; ; [2]; "ENABLE_WRITING" option added (see "_user_setting.h"). Verifying-only operation can be done with disabling this word
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
okano | 21:e149d0bdbf4a | 1 | |
okano | 21:e149d0bdbf4a | 2 | void set_target_baud_rate( int baud_rate ); |
okano | 21:e149d0bdbf4a | 3 | void usb_serial_bridge_operation( void ); |
okano | 21:e149d0bdbf4a | 4 | |
okano | 21:e149d0bdbf4a | 5 | void put_string( char *s ); |
okano | 21:e149d0bdbf4a | 6 | void put_binary( char *b, int size ); |
okano | 21:e149d0bdbf4a | 7 | void get_string( char *s ); |
okano | 21:e149d0bdbf4a | 8 | int get_binary( char *b, int length ); |
okano | 21:e149d0bdbf4a | 9 | char read_byte( void ); |
okano | 26:a63e73885b21 | 10 | |
okano | 30:e0d7524661ca | 11 | // next line is not related to "serial feature", but all code affected by this are including this header file |
okano | 30:e0d7524661ca | 12 | #pragma diag_suppress 1293 // surpressing a warning message of "assignment in condition" ;) |
okano | 30:e0d7524661ca | 13 |