34#ifndef _FREERTOS_DRIVERS_TI_TIVAEEPROMEMULATION_HXX_
35#define _FREERTOS_DRIVERS_TI_TIVAEEPROMEMULATION_HXX_
39#include "driverlib/rom.h"
40#include "driverlib/rom_map.h"
41#include "driverlib/flash.h"
73 static inline const uint32_t* get_block(
unsigned sector,
unsigned offset);
90 void flash_program(
unsigned sector,
unsigned start_block, uint32_t *data,
91 uint32_t byte_count)
override;
99 const uint32_t*
block(
unsigned sector,
unsigned offset)
override;
Emulates EEPROM in FLASH for the Tiva, LPC17xx and LPC40xx platforms.
const char * name
device name
Emulates EEPROM in FLASH for the Tiva platform.
@ TM4C129
Tiva TM4C129 devices, 16K block Size.
@ TM4C123
Tiva TM4C123 devices, 1K block size.
static const unsigned FAMILY
Family that device belongs to
void flash_program(unsigned sector, unsigned start_block, uint32_t *data, uint32_t byte_count) override
Simple hardware abstraction for FLASH program API.
~TivaEEPROMEmulation()
Destructor.
TivaEEPROMEmulation()
Default constructor.
void flash_erase(unsigned sector) override
Simple hardware abstraction for FLASH erase API.
const uint32_t * block(unsigned sector, unsigned offset) override
Computes the pointer to load the data stored in a specific block from.
#define DISALLOW_COPY_AND_ASSIGN(TypeName)
Removes default copy-constructor and assignment added by C++.