A module to store data on a fram.

Dependents:   oldheating motorhome heating

Committer:
andrewboyson
Date:
Fri Apr 23 08:20:00 2021 +0000
Revision:
0:e8f4aff306cd
Stores data on the FRAM

Who changed what in which revision?

UserRevisionLine numberNew contents of line
andrewboyson 0:e8f4aff306cd 1 #include <stdbool.h>
andrewboyson 0:e8f4aff306cd 2
andrewboyson 0:e8f4aff306cd 3 extern bool FramEmpty;
andrewboyson 0:e8f4aff306cd 4 extern int FramUsed;
andrewboyson 0:e8f4aff306cd 5 extern int FramInit(void);
andrewboyson 0:e8f4aff306cd 6 extern int FramAllocate(int size);
andrewboyson 0:e8f4aff306cd 7 extern void FramWrite(int address, int len, void* pVoid);
andrewboyson 0:e8f4aff306cd 8 extern void FramRead (int address, int len, void* pVoid);
andrewboyson 0:e8f4aff306cd 9 extern int FramLoad (int len, void* pValue, void* pDefault);
andrewboyson 0:e8f4aff306cd 10
andrewboyson 0:e8f4aff306cd 11 #define FRAM_SIZE 8192