Microchip® Advanced Software Framework

eepromLoader.c File Reference

Implementation of internal eeprom loader.

Copyright (c) 2020 Microchip Technology Inc. and its subsidiaries.

#include <types.h>
#include <bootStructure.h>
#include <flashLoader.h>

Macros

#define EEPROM_ADDRESS_MASK   0x0003FFFF
 

Functions

void eepromFlushPage (void)
 Flush unloaded data before exit from bootloader. More...
 
void eepromPacketToPage (void)
 Load received date to the flash. More...
 
uint8_t eepromReadData (uint16_t address)
 Reads data from the EEPROM. More...
 

Variables

BootBuffer_t dataBuffer
 

#define EEPROM_ADDRESS_MASK   0x0003FFFF

Referenced by eepromPacketToPage().

void eepromFlushPage ( void  )

Flush unloaded data before exit from bootloader.

Referenced by srecProtocol().

uint8_t eepromReadData ( uint16_t  address)

Reads data from the EEPROM.

Parameters
[in]address- address of data byte.
Returns
read byte

References hwFlashRead().

BootBuffer_t dataBuffer