#ifndef __EEPROM_H__
#define __EEPROM_H__

#include "zf_common_headfile.h"

//洢λñ
typedef enum
{
    motor_l_p, motor_l_i, motor_l_d,
    motor_r_p, motor_r_i, motor_r_d,
    dir_p, dir_i, dir_d,dir_kp2,dir_gkd,
    para_error_k,para_dynamic_p_coef,para_dynamic_frontsight,para_round_p_decrease,para_round_size,para_frontsight,S
    para_num
}parameter;


#define FLASH_SECTION_INDEX       (0)                                 // 洢õ
#define FLASH_PAGE_INDEX          (10)                                // 洢õҳ һҳ


void EEPROM_Update_All_Para(void);                      //вֵ
float EEPROM_Read_Data(parameter para);                 //
void EEPROM_Write_Data(parameter para, float data);     //д
void EEPROM_Write_Data_uint16(parameter para, uint16 data);

#endif
