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
command_interface.h@34:eaca33d3e632, 2013-09-26 (annotated)
- Committer:
- okano
- Date:
- Thu Sep 26 11:51:03 2013 +0000
- Revision:
- 34:eaca33d3e632
- Parent:
- 27:2b5c1eb39bb5
- Child:
- 35:0b434ef4af49
[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 | 26:a63e73885b21 | 1 | |
okano | 22:bd98a782fba6 | 2 | #define STR_BUFF_SIZE 64 |
okano | 26:a63e73885b21 | 3 | |
okano | 22:bd98a782fba6 | 4 | int try_and_check( char *command, char *expected_return_str, int mode ); |
okano | 22:bd98a782fba6 | 5 | int try_and_check2( char *command, char *expected_return_str, int mode ); |
okano | 22:bd98a782fba6 | 6 | void print_command( char *command ); |
okano | 22:bd98a782fba6 | 7 | void print_result( int r ); |
okano | 27:2b5c1eb39bb5 | 8 | int send_RAM_transfer_checksum( int checksum ); |
okano | 27:2b5c1eb39bb5 | 9 | int erase_sectors( int last_sector ); |
okano | 26:a63e73885b21 | 10 |