Store the configuration on the SD card

This commit is contained in:
2015-08-13 14:10:09 +00:00
parent 53a8072424
commit d0f9f46f9c
16 changed files with 271 additions and 26 deletions

2
log.h
View File

@@ -12,6 +12,7 @@ void log_put_uint(unsigned int i);
void log_put_float(float f);
void log_put_header(unsigned int timestamp);
void log_put_array(char *data, int length);
void log_put_config(void);
void log_mark_busy(void);
void log_mark_idle(void);
@@ -19,6 +20,7 @@ unsigned int log_read_busytime(void);
/* Needed by log.c and sdcard.c only */
#define LOG_MAGIC 0x00000CFC
#define LOG_MAGIC_CONFIG 0x00C07F18
#define LOG_BUFFERSIZE 4096