px-lib  0.9.2
Cross-platform embedded library and documentation for 8/16/32-bit microcontrollers

Description

This module can erase a page and write a half page of internal EEPROM.

File(s):

Note
The flash erase and program functions must be executed from SRAM, not EEPROM.

Macros

#define PX_EEPROM_BASE_ADR   DATA_EEPROM_BASE
 Start address of EEPROM. More...
 

Functions

void px_eeprom_unlock (void)
 Unlock EEPROM for programming and erase. More...
 
void px_eeprom_lock (void)
 Lock EEPROM to prevent programming or erase. More...
 
void px_eeprom_erase_word (const uint32_t address)
 Function to erase a word (not really required). More...
 

Macro Definition Documentation

◆ PX_EEPROM_BASE_ADR

#define PX_EEPROM_BASE_ADR   DATA_EEPROM_BASE

Start address of EEPROM.

Definition at line 48 of file px_eeprom.h.

Function Documentation

◆ px_eeprom_unlock()

void px_eeprom_unlock ( void  )

Unlock EEPROM for programming and erase.

Definition at line 40 of file px_eeprom.c.

◆ px_eeprom_lock()

void px_eeprom_lock ( void  )

Lock EEPROM to prevent programming or erase.

Definition at line 55 of file px_eeprom.c.

◆ px_eeprom_erase_word()

void px_eeprom_erase_word ( const uint32_t  address)

Function to erase a word (not really required).

Parameters
addressPage address

Definition at line 69 of file px_eeprom.c.