Bayley Wang
/
flash_configuration
flash based config testing
Diff: PreferenceWriter.h
- Revision:
- 1:df6bbacb7bb9
- Parent:
- 0:941e150e78b6
- Child:
- 2:cfc39b0843ae
--- a/PreferenceWriter.h Wed Mar 01 00:52:47 2017 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,21 +0,0 @@ -#ifndef __PREFERENCE_WRITER_H -#define __PREFERENCE_WRITER_H - -#include "mbed.h" -#include "FlashWriter.h" - -class PreferenceWriter { -public: - PreferenceWriter(uint32_t sector); - void open(); - void write(int x, int index); - void write(float x, int index); - void flush(); - void load(); - void close(); -private: - FlashWriter *writer; - uint32_t __sector; -}; - -#endif \ No newline at end of file