Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed MODSERIAL DirectoryList
Diff: isp.h
- Revision:
- 30:e0d7524661ca
- Child:
- 32:3700d5df4e18
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/isp.h Fri Sep 20 02:21:58 2013 +0000 @@ -0,0 +1,33 @@ +#ifndef MBED_ISP__ISP__ +#define MBED_ISP__ISP__ + + +int isp_flash_write( char *file_name ); +void start_target_in_normal_mode( int baud_rate ); +void start_success_indicator( void ); +void toggle_led( char v ); + + +enum { + NO_ERROR = 0x00, + + ERROR_AT_TARGET_OPEN, + ERROR_AT_FILE_OPEN, + ERROR_AT_SECTOR_ERASE, + + ERROR_AT_MALLOC_FOR_WRITE_BUFF, + ERROR_AT_WRITE_COMMAND, + ERROR_AT_PREPARE_COMMAND, + ERROR_AT_COPY_COMMAND, + ERROR_AT_SENDING_CHECKSUM, + + ERROR_AT_MALLOC_FOR_VERIFY_FILE_BUFF, + ERROR_AT_MALLOC_FOR_VERIFY_DATA_BUFF, + ERROR_AT_READ_COMMAND, + + ERROR_DATA_DOES_NOT_MATCH +}; + + +#endif // MBED_ISP__ISP__ +