34#ifndef _FREERTOS_DRIVERS_ST_STM32F0xxEEPROMEMULATION_HXX_
35#define _FREERTOS_DRIVERS_ST_STM32F0xxEEPROMEMULATION_HXX_
64 static inline const uint32_t* get_block(
unsigned sector,
unsigned offset);
72 const uint32_t*
block(
unsigned sector,
unsigned offset)
override;
86 void flash_program(
unsigned sector,
unsigned start_block, uint32_t *data, uint32_t byte_count)
override;
Emulates EEPROM in FLASH for the Tiva, LPC17xx and LPC40xx platforms.
size_t file_size()
Get the maximum file size of the EEPROM file.
const char * name
device name
Emulates EEPROM in FLASH for the STM32F0xx platform.
void flash_erase(unsigned sector) override
Simple hardware abstraction for FLASH erase API.
~Stm32EEPROMEmulation()
Destructor.
const uint32_t * block(unsigned sector, unsigned offset) override
Computes the pointer to load the data stored in a specific block from.
void flash_program(unsigned sector, unsigned start_block, uint32_t *data, uint32_t byte_count) override
Simple hardware abstraction for FLASH program API.
Stm32EEPROMEmulation()
Default constructor.
static const uintptr_t PAGE_SIZE
The erase page length for the particular MCU.
#define DISALLOW_COPY_AND_ASSIGN(TypeName)
Removes default copy-constructor and assignment added by C++.