AN2594: EEPROM emulation in STM32F10x microcontrollers: eeprom.c File Reference

AN2594: EEPROM

eeprom.c File Reference

Author:
MCD Application Team
More...

#include "eeprom.h"

Go to the source code of this file.


Functions

static uint16_t EE_FindValidPage (uint8_t Operation)
 Find valid Page for write or read operation.
static FLASH_Status EE_Format (void)
 Erases PAGE0 and PAGE1 and writes VALID_PAGE header to PAGE0.
uint16_t EE_Init (void)
 Restore the pages to a known good state in case of page's status corruption after a power loss.
static uint16_t EE_PageTransfer (uint16_t VirtAddress, uint16_t Data)
 Transfers last updated variables data from the full Page to an empty one.
uint16_t EE_ReadVariable (uint16_t VirtAddress, uint16_t *Data)
 Returns the last stored variable data, if found, which correspond to the passed virtual address.
static uint16_t EE_VerifyPageFullWriteVariable (uint16_t VirtAddress, uint16_t Data)
 Verify if active page is full and Writes variable in EEPROM.
uint16_t EE_WriteVariable (uint16_t VirtAddress, uint16_t Data)
 Writes/upadtes variable data in EEPROM.

Variables

uint16_t DataVar = 0
uint16_t VirtAddVarTab [NumbOfVar]


Detailed Description

Author:
MCD Application Team

Version:
V3.1.0
Date:
07/27/2009 This file provides all the EEPROM emulation firmware functions.

THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.

© COPYRIGHT 2009 STMicroelectronics

Definition in file eeprom.c.

STM32F10x Standard Peripherals Library: Footer

 

 

 

      For complete documentation on STM32(CORTEX M3) 32-bit Microcontrollers platform visit www.st.com/STM32