LPC1549 EEPROM
Embed:
(wiki syntax)
Show/hide line numbers
eeprom.h
Go to the documentation of this file.
00001 #ifndef eeprom_h 00002 #define eeprom_h 00003 00004 // OKANO's IAP code from 00005 // http://mbed.org/users/okano/notebook/iap-in-application-programming-internal-flash-eras/ 00006 /** 00007 * @file 00008 */ 00009 00010 #define EEPROM_ADDRESS 64 00011 #include "mbed.h" 00012 00013 /** Copy RAM to EEPROM (LPC11U24) 00014 * 00015 * @param source_addr Source RAM address from which data bytes are to be read. 00016 * @param target_addr Destination EEPROM address where data bytes are to be written. 00017 * @param size Number of bytes to be written. 00018 * @return error code: CMD_SUCCESS | SRC_ADDR_NOT_MAPPED | DST_ADDR_NOT_MAPPED 00019 * Remark: The top 64 bytes of the EEPROM memory are reserved and cannot be written to. 00020 */ 00021 int write_eeprom( char *source_addr, char *target_addr, int size ); 00022 00023 /** Copy EEPROM to RAM (LPC11U24) 00024 * 00025 * @param source_addr Source EEPROM address from which data bytes are to be read. 00026 * @param target_addr Destination RAM address where data bytes are to be written. 00027 * @param size Number of bytes to be written. 00028 * @return error code: CMD_SUCCESS | SRC_ADDR_NOT_MAPPED | DST_ADDR_NOT_MAPPED 00029 * Remark: The top 64 bytes of the EEPROM memory are reserved and cannot be written to. 00030 */ 00031 int read_eeprom( char *source_addr, char *target_addr, int size ); 00032 00033 #endif
Generated on Tue Aug 30 2022 00:28:04 by
1.7.2