70 #define PAGE_ADDR 0x01
99 str[4 + stSize] =
'\0';
102 DEBUGSTR(
"Stored string found in EEEPROM\r\n");
108 DEBUGSTR(
"No string stored in the EEPROM\r\n");
119 DEBUGSTR(
"\r\nEnter a string to write into EEPROM\r\n");
120 DEBUGSTR(
"Up to 32 bytes in length, press ESC to accept\r\n");
129 while ((index < 32) && (byte !=
ESC_CHAR)) {
131 strOut[0] = str[4 + index] = (uint8_t) byte;
139 str[3] = (uint8_t) index;
150 for(i = 0; i < size/4; i++) {
151 ptr[i] = pEepromMem[i];
166 #if (AUTOPROG_ON == 0)
181 for(i = 0; i < size/4; i++) {
182 pEepromMem[i] = ptr[i];
188 #if (AUTOPROG_ON == 0)
204 uint8_t *ptr = (uint8_t *)
buffer;
205 volatile int loop = 1;
229 stSize = (stSize/4 + 1)*4;
235 DEBUGSTR(
"\r\nEEPROM write...\r\n");
237 DEBUGSTR(
"Reading back string...\r\n");