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.
eeprom.h
- Committer:
- okini3939
- Date:
- 2012-08-04
- Revision:
- 0:c32514e75196
- Child:
- 1:724b44e46ecf
File content as of revision 0:c32514e75196:
/** * @file */ #define EEPROM_ADDRESS 64 /** Copy RAM to EEPROM (LPC11U24) * * @param source_addr Source RAM address from which data bytes are to be read. * @param target_addr Destination EEPROM address where data bytes are to be written. * @param size Number of bytes to be written. * @return error code: CMD_SUCCESS | SRC_ADDR_NOT_MAPPED | DST_ADDR_NOT_MAPPED * Remark: The top 64 bytes of the EEPROM memory are reserved and cannot be written to. */ int write_eeprom( char *source_addr, char *target_addr, int size ); /** Copy EEPROM to RAM (LPC11U24) * * @param source_addr Source EEPROM address from which data bytes are to be read. * @param target_addr Destination RAM address where data bytes are to be written. * @param size Number of bytes to be written. * @return error code: CMD_SUCCESS | SRC_ADDR_NOT_MAPPED | DST_ADDR_NOT_MAPPED * Remark: The top 64 bytes of the EEPROM memory are reserved and cannot be written to. */ int read_eeprom( char *source_addr, char *target_addr, int size );