Implementation of internal eeprom loader.
Copyright (c) 2020 Microchip Technology Inc. and its subsidiaries.
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().
void eepromPacketToPage | ( | void | ) |
Load received date to the flash.
References HW_EepromParams_t::address, BootBuffer_t::address, HW_EepromParams_t::data, BootBuffer_t::data, BootBuffer_t::dataSize, EEPROM_ADDRESS_MASK, hwFlashWriteEepromPage(), and HW_EepromParams_t::length.
Referenced by srecProtocol().
uint8_t eepromReadData | ( | uint16_t | address | ) |
Reads data from the EEPROM.
[in] | address | - address of data byte. |
References hwFlashRead().
BootBuffer_t dataBuffer |