firmware
IEM Firmware Documentation
Loading...
Searching...
No Matches
_feram_private.h
Go to the documentation of this file.
1
8
9
#ifndef FERAM_PRIVATE_H
10
#define FERAM_PRIVATE_H
11
12
// TODO: test different constants here and evaluate performance
13
#define FERAM_MIN_READ_SIZE 1
14
#define FERAM_MIN_PROG_SIZE 1
15
#define FERAM_BLOCK_SIZE 2048
16
#define FERAM_BLOCK_COUNT (FERAM_SIZE_BYTES / FERAM_BLOCK_SIZE)
17
// Disable wear leveling for better performance
18
// FeRAM has a ludicrous amount of R/W endurance, it's pretty much impossible to hit the limit in practice
19
#define FERAM_BLOCK_CYCLES -1
20
#define FERAM_CACHE_SIZE 2048
21
#define FERAM_LOOKAHEAD_SIZE (256 / 8)
// Value in bytes - each bit stores info for one block
22
#define FERAM_NAME_MAX 63
// Max file name length
23
#define FERAM_FILE_MAX FERAM_SIZE_BYTES
// Max file size
24
25
#endif
/* FERAM_PRIVATE_H */
common
lib
nvm
inc
_feram_private.h
Generated by
1.14.0