LPC11U24 internal EEPROM

Dependents:   ver1_2_2_1

Committer:
okini3939
Date:
Sat Aug 04 11:36:21 2012 +0000
Revision:
0:c32514e75196
Child:
1:724b44e46ecf
bugfix

Who changed what in which revision?

UserRevisionLine numberNew contents of line
okini3939 0:c32514e75196 1 /**
okini3939 0:c32514e75196 2 * @file
okini3939 0:c32514e75196 3 */
okini3939 0:c32514e75196 4
okini3939 0:c32514e75196 5 #define EEPROM_ADDRESS 64
okini3939 0:c32514e75196 6
okini3939 0:c32514e75196 7 /** Copy RAM to EEPROM (LPC11U24)
okini3939 0:c32514e75196 8 *
okini3939 0:c32514e75196 9 * @param source_addr Source RAM address from which data bytes are to be read.
okini3939 0:c32514e75196 10 * @param target_addr Destination EEPROM address where data bytes are to be written.
okini3939 0:c32514e75196 11 * @param size Number of bytes to be written.
okini3939 0:c32514e75196 12 * @return error code: CMD_SUCCESS | SRC_ADDR_NOT_MAPPED | DST_ADDR_NOT_MAPPED
okini3939 0:c32514e75196 13 * Remark: The top 64 bytes of the EEPROM memory are reserved and cannot be written to.
okini3939 0:c32514e75196 14 */
okini3939 0:c32514e75196 15 int write_eeprom( char *source_addr, char *target_addr, int size );
okini3939 0:c32514e75196 16
okini3939 0:c32514e75196 17 /** Copy EEPROM to RAM (LPC11U24)
okini3939 0:c32514e75196 18 *
okini3939 0:c32514e75196 19 * @param source_addr Source EEPROM address from which data bytes are to be read.
okini3939 0:c32514e75196 20 * @param target_addr Destination RAM address where data bytes are to be written.
okini3939 0:c32514e75196 21 * @param size Number of bytes to be written.
okini3939 0:c32514e75196 22 * @return error code: CMD_SUCCESS | SRC_ADDR_NOT_MAPPED | DST_ADDR_NOT_MAPPED
okini3939 0:c32514e75196 23 * Remark: The top 64 bytes of the EEPROM memory are reserved and cannot be written to.
okini3939 0:c32514e75196 24 */
okini3939 0:c32514e75196 25 int read_eeprom( char *source_addr, char *target_addr, int size );
okini3939 0:c32514e75196 26