Macros | Functions
eeprom.c File Reference
#include "types.h"
#include <stdbool.h>
#include <stdint.h>
#include "inc/hw_eeprom.h"
#include "inc/hw_flash.h"
#include "inc/hw_sysctl.h"
#include "debug.h"
#include "flash.h"
#include "interrupt.h"
#include "sysctl.h"
#include "eeprom.h"

Macros

#define BLOCKS_FROM_EESIZE(x)
 
#define SIZE_FROM_EESIZE(x)
 
#define OFFSET_FROM_ADDR(x)   (((x) >> 2) & 0x0F)
 
#define EEPROM_MASS_ERASE_KEY   ((uint32_t)0xE37B << EEPROM_EEDBGME_KEY_S)
 

Functions

uint32_t EEPROMInit (void)
 
uint32_t EEPROMSizeGet (void)
 
uint32_t EEPROMBlockCountGet (void)
 
void EEPROMRead (uint32_t *pui32Data, uint32_t ui32Address, uint32_t ui32Count)
 
uint32_t EEPROMProgram (uint32_t *pui32Data, uint32_t ui32Address, uint32_t ui32Count)
 
uint32_t EEPROMProgramNonBlocking (uint32_t ui32Data, uint32_t ui32Address)
 
uint32_t EEPROMMassErase (void)
 
uint32_t EEPROMBlockProtectGet (uint32_t ui32Block)
 
uint32_t EEPROMBlockProtectSet (uint32_t ui32Block, uint32_t ui32Protect)
 
uint32_t EEPROMBlockPasswordSet (uint32_t ui32Block, uint32_t *pui32Password, uint32_t ui32Count)
 
uint32_t EEPROMBlockLock (uint32_t ui32Block)
 
uint32_t EEPROMBlockUnlock (uint32_t ui32Block, uint32_t *pui32Password, uint32_t ui32Count)
 
void EEPROMBlockHide (uint32_t ui32Block)
 
void EEPROMIntEnable (uint32_t ui32IntFlags)
 
void EEPROMIntDisable (uint32_t ui32IntFlags)
 
uint32_t EEPROMIntStatus (bool bMasked)
 
void EEPROMIntClear (uint32_t ui32IntFlags)
 
uint32_t EEPROMStatusGet (void)
 
Copyright 2017, Texas Instruments Incorporated