A module to store data on a fram.
Dependents: oldheating motorhome heating
Diff: fram.h
- Revision:
- 0:e8f4aff306cd
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/fram.h Fri Apr 23 08:20:00 2021 +0000 @@ -0,0 +1,11 @@ +#include <stdbool.h> + +extern bool FramEmpty; +extern int FramUsed; +extern int FramInit(void); +extern int FramAllocate(int size); +extern void FramWrite(int address, int len, void* pVoid); +extern void FramRead (int address, int len, void* pVoid); +extern int FramLoad (int len, void* pValue, void* pDefault); + +#define FRAM_SIZE 8192