27 lines
420 B
C
27 lines
420 B
C
|
/**
|
||
|
* @file flash_main.h
|
||
|
* @brief
|
||
|
*
|
||
|
* @date Sep 19, 2013
|
||
|
* @author Andrey Belomutskiy, (c) 2012-2013
|
||
|
*/
|
||
|
|
||
|
#ifndef FLASH_MAIN_H_
|
||
|
#define FLASH_MAIN_H_
|
||
|
|
||
|
#include "engine_configuration.h"
|
||
|
#include "crc.h"
|
||
|
|
||
|
#define FLASH_DATA_VERSION 20140309
|
||
|
|
||
|
typedef struct {
|
||
|
int version;
|
||
|
engine_configuration_s configuration;
|
||
|
crc value;
|
||
|
} FlashState;
|
||
|
|
||
|
void initFlash(void);
|
||
|
void writeToFlash(void);
|
||
|
|
||
|
#endif /* FLASH_MAIN_H_ */
|