/**
 * @file EepromMiddle.h
 * @brief 中间层封装的EEPROM通用代码
 * @author Landworld0321 (Landworld@landworld.com)
 * @version V1.0
 * @date 2025-04-23
 * @copyright Copyright (c) 2025 by Landworld.Co.Ltd. All rights reserved
 * 版本号    修改日期        修改人        修改内容
 * ---------------------------------------------------------------------------
 * v1.0    2025-04-23     WuHongHui     整理初版程序
 */
#ifndef EEPROMMIDDLE_H_
#define EEPROMMIDDLE_H_

/*INCLUDE HEAD*********************************************************/
#include "CommonInc.h"

/*DEFINE *********************************************************/
#define IO_EEPROM_STBON               GpioMiddle_SetPin(GROUP_D, 2, 0)
#define IO_EEPROM_STBOFF              GpioMiddle_SetPin(GROUP_D, 2, 1)
#define FLAG_TIMEOUT                  ((UINT32)0x0000FFFF) //约5.7ms

/*FUNCTION DECLARATION*********************************************************/

void EepromMiddle_Init(void);
UINT8 App_EERPOM_Wt1Byte(UINT16 addr, UINT8 data);
UINT8 App_EERPOM_Rd1Byte(UINT16 Addr, UINT8 *Data);


#endif
